Esbuild: Export ES6 module

Created on 29 Mar 2020  路  5Comments  路  Source: evanw/esbuild

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

Most helpful comment

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

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wcastand picture wcastand  路  4Comments

ayox picture ayox  路  4Comments

qnp picture qnp  路  4Comments

sarsamurmu picture sarsamurmu  路  3Comments

iamakulov picture iamakulov  路  4Comments