Skip to content

Publish native ES module #298

@dandv

Description

@dandv

Node v8.5.0 has just added experimental support for modules behind a flag, and now compliant modules can be imported directly, without any transpiler, if they have the .mjs extension.

By omitting the extension in the main field of package.json, the module will be compatible with Node pre 8.5.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions