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

Export ES6 module #48

Closed
dy opened this issue Mar 29, 2020 · 5 comments
Closed

Export ES6 module #48

dy opened this issue Mar 29, 2020 · 5 comments

Comments

@dy
Copy link

dy commented Mar 29, 2020

Now created bundle has commonjs format.
Is there any way to set bundle format to esm?

@evanw
Copy link
Owner

evanw commented Mar 31, 2020

No, there isn't yet. That's a good idea though. I'd like to add this feature at some point.

@arodic
Copy link

arodic commented Apr 16, 2020

This is a must-have in my opinion. ES6 modules are the future. Awesome work Evan.

@looeee
Copy link

looeee commented Apr 17, 2020

I thought --target=esnext would create an ES6 module.

This is a must-have in my opinion.

Completely agreed. This tool is blazing fast but no use to me unless it can output ES6 modules.

@lukejacksonn
Copy link

This would be incredible! Perhaps es-module-lexer would make this easier to implement.

@evanw
Copy link
Owner

evanw commented May 26, 2020

This is implemented in version 0.4.0 that was just released. Please try it out and let me know if you find any issues.

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

5 participants