Skip to content

Commit

Permalink
Add webpack condition, so webpack loads es6 module version
Browse files Browse the repository at this point in the history
Even when handling the `exports` table, as done in `webpack` 5. `webpack` 5, at least at present, doesn't handle esm/cjs interop the same way as `node`, so we can;t use the same source as in `node`.
  • Loading branch information
weswigham authored Oct 9, 2020
1 parent 4d0058c commit 5b81244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"sideEffects": false,
"exports": {
".": {
"webpack": "./tslib.es6.js",
"import": "./modules/index.js",
"default": "./tslib.js"
},
Expand Down

0 comments on commit 5b81244

Please sign in to comment.