Skip to content

ESM support (type=module + exports={}) #201

@damianobarbati

Description

@damianobarbati

Would you consider adding support for ESM?
https://nodejs.org/api/esm.html#esm_main_entry_point_export
Node v13 already has ESM enabled by default, and node v14 will be here in a couple of weeks.

An opt-in solution could be given in the following way (I guess, not tested):

  • another available entrypoint like common-tags/esm
  • built and exposed holding a package.json with type=module and exports field in place

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