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

Outputting an ES module / .mjs build #512

Closed
guybedford opened this issue Feb 20, 2020 · 2 comments
Closed

Outputting an ES module / .mjs build #512

guybedford opened this issue Feb 20, 2020 · 2 comments

Comments

@guybedford
Copy link
Contributor

We should be able to enable a --module flag or similar at this point that enables outputting an ES module instead of a CommonJS build.

@tunnckoCore
Copy link

tunnckoCore commented Feb 21, 2020

The only possibility that I know for now is the @purtuga/esm-webpack-plugin, but the problem of with tree-shaking the outputted module remains, until Webpack support true ESM output. As explained in the plugin readme.

But worth including yep :) Plus the #236 (which is a different thing) would be great.

@styfle
Copy link
Member

styfle commented Sep 9, 2021

Fixed in #720 by detecting .mjs or type: module

@styfle styfle closed this as completed Sep 9, 2021
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