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 #1

Open
j-f1 opened this issue Feb 22, 2022 · 0 comments
Open

Support ESM #1

j-f1 opened this issue Feb 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@j-f1
Copy link
Owner

j-f1 commented Feb 22, 2022

Ideally, ESM would be supported in pages as well as component files, and the project would be rewritten to use ESM throughout.

Unfortunately, the Babel transform @babel/plugin-transform-modules-commonjs converts both static and dynamic imports to require calls (and, of course, you won’t be able to import ESM-only packages with a top-level import statement). As a result, it isn’t feasible to compile away the ESM code.

This is ~blocked on:

@j-f1 j-f1 added the enhancement New feature or request label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant