Skip to content

Commit

Permalink
Merge pull request #201 from microsoft/fix-esm
Browse files Browse the repository at this point in the history
Add Node-specific export condition for ESM entrypoint that re-exports CJS
  • Loading branch information
andrewbranch authored May 1, 2023
2 parents 4e79d03 + 897f11e commit 7def846
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@
"sideEffects": false,
"exports": {
".": {
"module": "./tslib.es6.js",
"import": "./modules/index.js",
"module": {
"types": "./tslib.d.ts",
"default": "./tslib.es6.js"
},
"import": {
"node": "./modules/index.js",
"default": {
"types": "./tslib.d.ts",
"default": "./tslib.es6.js"
}
},
"default": "./tslib.js"
},
"./*": "./*",
Expand Down

0 comments on commit 7def846

Please sign in to comment.