-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Description
tslib's package.json has a few issues RE detecting whether it's CJS or ESM. Due to lack of standards support, it has to be special-cased in a number of places, eg jest-preset-angular. Workaround like this are needed in any projects using jest, typescript, and tslib.
The following changes to the package.json would fix things - happy to provide a PR if it will be considered:
- There is no
"type": "module"
field, which tells node code that .js files support ESM - The ESM tslib (currently
"tslib.es6.js"
) should have an .mjs file extension - The CJS tslib (currently `"tslib.js") should have a .cjs file extension.
To be clear, just the type
field would help, but I think it would be preferable to complete all 3 at once.
JounQin, GuillaumeAmat, yoyo837 and sholohov
Metadata
Metadata
Assignees
Labels
No labels