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

evanplaice picture evanplaice  路  3Comments

mohsen1 picture mohsen1  路  3Comments

tonyhb picture tonyhb  路  3Comments

elektronik2k5 picture elektronik2k5  路  3Comments

Gotterbild picture Gotterbild  路  3Comments