Skip to content

Commit 2d3938c

Browse files
committedJun 22, 2021
Fixed module imports & ensure all imports have a .js extension
https://gils-blog.tayar.org/posts/using-jsm-esm-in-nodejs-a-practical-guide-part-3/
1 parent 7309505 commit 2d3938c

File tree

65 files changed

+311
-286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+311
-286
lines changed
 

‎packages/angularjs/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@
2424
},
2525
"private": true,
2626
"license": "Apache-2.0",
27-
"module": "dist/index.js",
27+
"type": "module",
28+
"main": "dist/index.js",
2829
"types": "dist/index.d.ts",
30+
"exports": {
31+
".": "./dist/index.js",
32+
"./package.json": "./package.json"
33+
},
2934
"scripts": {
3035
"lint": "eslint --cache --ext .ts",
3136
"lint:fix": "eslint --fix",

‎packages/browser/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@
2424
},
2525
"private": true,
2626
"license": "Apache-2.0",
27-
"module": "dist/index.js",
27+
"type": "module",
28+
"main": "dist/index.js",
2829
"types": "dist/index.d.ts",
30+
"exports": {
31+
".": "./dist/index.js",
32+
"./package.json": "./package.json"
33+
},
2934
"scripts": {
3035
"lint": "eslint --cache --ext .ts",
3136
"lint:fix": "eslint --fix",

0 commit comments

Comments
 (0)
Please sign in to comment.