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

Migrate to ES modules #160

Open
alexashley opened this issue Jul 12, 2021 · 0 comments
Open

Migrate to ES modules #160

alexashley opened this issue Jul 12, 2021 · 0 comments

Comments

@alexashley
Copy link
Contributor

Currently the code under server uses ESM and the remaining code is transpiled to CJS. Ideally we would be able to set "type": "module" and drop the .mjs extension for the server code. Of course, the React code under pages and component would still need to be transpiled.

The last time this was attempted, there was some issues with Next.js:

https://github.com/vercel/next.js/issues/9607
https://github.com/vercel/next.js/issues/24334
https://github.com/vercel/next.js/discussions/22381
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