Skip to content

Commit 5b81244

Browse files
authored
Add webpack condition, so webpack loads es6 module version
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`.
1 parent 4d0058c commit 5b81244

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"sideEffects": false,
2929
"exports": {
3030
".": {
31+
"webpack": "./tslib.es6.js",
3132
"import": "./modules/index.js",
3233
"default": "./tslib.js"
3334
},

0 commit comments

Comments
 (0)