Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Make ES module compatible with node core ESM loader #81

Open
pravi opened this issue Jul 27, 2019 · 0 comments · May be fixed by #85
Open

Make ES module compatible with node core ESM loader #81

pravi opened this issue Jul 27, 2019 · 0 comments · May be fixed by #85

Comments

@pravi
Copy link

pravi commented Jul 27, 2019

As discussed with nodejs maintainers here -> nodejs/help#2081 (comment) node core esm loader does not recognise "module" field.

As per https://nodejs.org/api/esm.html#esm_package_entry_points I think you need to provide a .mjs file as ES module entry point or add "type": " module" and provide commonjs entry point as .cjs file. I hope one of these options can be considered to make it work with node core ESM loader.

@marvinhagemeister marvinhagemeister linked a pull request Jul 4, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant