-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Tree Shaking through the module field in package.json #843
Comments
Okay, now that #880 is merged, this should be somewhat straightforward! The holdup is that there is a unique build/deploy process that will have to change to support it. @leebyron @wincent I spent a minute looking through how this gets all bundled up, and it seems like the build steps in the Would you mind if I consolidate the duplicate |
Okay, I've got a first pass at what this type of change would look like. Before I get it all tucked in, I'd love to get some feedback. |
Supported in master (thanks to @baer's hard work) and will be included with the next release |
Webpack and rollup use the module field in the package.json to find a build with ES6 imports which enables tree shaking.
You can use babel to transpile with
You will have configure babel to transpile flow too.
Enabling this in this library could potentially reduce client builds by around 100kb
The text was updated successfully, but these errors were encountered: