Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Generate ES Modules rather than CommonJS #37

Closed
rhysforyou opened this issue Feb 9, 2018 · 2 comments
Closed

Generate ES Modules rather than CommonJS #37

rhysforyou opened this issue Feb 9, 2018 · 2 comments
Milestone

Comments

@rhysforyou
Copy link

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 rrdelaney added this to the 1.0 milestone Feb 9, 2018
@rrdelaney
Copy link
Owner

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

@rhysforyou rhysforyou changed the title Generate ES6 modules rather than CommonJS Generate ES Modules rather than CommonJS Feb 14, 2018
@rrdelaney
Copy link
Owner

rrdelaney commented May 3, 2018

This was enabled by default in v0.9.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants