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

Make ES module compatible with node core ESM loader #81

@pravi

Description

@pravi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions