rrdelaney / reason-scripts

:beginner: Create a ReasonML and React development environment
MIT License
628 stars 58 forks source link

Generate ES Modules rather than CommonJS #37

Closed rhysforyou closed 6 years ago

rhysforyou commented 6 years ago

Like it says in the title. There's benefits to using ES Modules over CommonJS in conjunction with tools like Webpack, mainly to do with tree shaking. It'd be great if we could make ES Modules the default for reason-scripts.

rrdelaney commented 6 years ago

100% agree. 1.0 will have this on by default.

rrdelaney commented 6 years ago

This was enabled by default in v0.9.