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

Support ESM #1130

Open
slominskir opened this issue Jun 21, 2021 · 0 comments
Open

Support ESM #1130

slominskir opened this issue Jun 21, 2021 · 0 comments

Comments

@slominskir
Copy link

Is your feature request related to a problem? Please describe.
Support the JavaScript standard module system (ESM). Some JS frameworks focus support on ESM now and you've got to do legacy work-arounds to import CJS modules. For example SvelteKit (with Vite).

Deno support (#850) also becomes less of a lift.

Describe the solution you'd like
Pick one of:

  1. add a build step that takes the current CJS source and distributes both it and an ESM version
  2. convert the source to ESM and add a build step that takes the ESM source and distributes both it and a CJS version

Additional context
None.

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

1 participant