Skip to content

Commit a0a67d9

Browse files
committedMay 1, 2023
Add Node-specific export condition for ESM entrypoint that re-exports CJS
1 parent a100d7b commit a0a67d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
"exports": {
3030
".": {
3131
"module": "./tslib.es6.js",
32-
"import": "./modules/index.js",
32+
"import": {
33+
"node": "./modules/index.js",
34+
"default": "./tslib.es6.js"
35+
},
3336
"default": "./tslib.js"
3437
},
3538
"./*": "./*",

0 commit comments

Comments
 (0)
Please sign in to comment.