Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
damianobarbati opened this issue Apr 11, 2020 · 2 comments
Open

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

damianobarbati opened this issue Apr 11, 2020 · 2 comments

Comments

@damianobarbati
Copy link

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
@fatfisz
Copy link
Collaborator

fatfisz commented May 31, 2020

Ok, I'll try to implement that; or would you be willing to provide a PR?

Siilwyn added a commit to Siilwyn/common-tags that referenced this issue Jan 30, 2021
Also remove unofficial fields that mark a package as 'ES' and bump build
related tooling dependencies to ensure compatibility with the new
standard. Since the package scope is now set to module change config
files to use ESM or run with CommonJS using the `cjs` extension.

Closes zspecza#201
@Hexagon
Copy link

Hexagon commented Mar 29, 2023

This is fixed in the fork proper-tags at https://github.com/hexagon/proper-tags published to npmjs.com/package/proper-tags and deno.land/x/proper_tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants