Now created bundle has commonjs format.
Is there any way to set bundle format to esm
?
No, there isn't yet. That's a good idea though. I'd like to add this feature at some point.
This is a must-have in my opinion. ES6 modules are the future. Awesome work Evan.
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.
This would be incredible! Perhaps es-module-lexer
would make this easier to implement.
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.
Most helpful comment
No, there isn't yet. That's a good idea though. I'd like to add this feature at some point.