Skip to content
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

Implement better optimizations for javascript bundle #32

Open
mstade opened this issue Aug 30, 2016 · 1 comment
Open

Implement better optimizations for javascript bundle #32

mstade opened this issue Aug 30, 2016 · 1 comment

Comments

@mstade
Copy link
Member

mstade commented Aug 30, 2016

Expected Behavior

The optimized javascript should be linked in a smarter way, such that we can make use of optimizations such as tree shaking and dead code elimination. Rollup is a good candidate for linking ES2015 code, however this means we either need to combine Rollup with Babel, for the ES2015 => ES5 transformations, or make this two separate transformations, where Rollup does a ES2015 => ES2015 transformation, which is then fed to Babel for the final ES5 transformation.

Current Behavior

Currently, the output bundle is just a concatenation of all javascript files that the unoptimized build outputs. This works, and isn't terrible, but we can do better.

@mstade
Copy link
Member Author

mstade commented Aug 31, 2016

Also worth noting is Babili, released today. It's an optimizer specifically for babel, doing ES2015 to ES2015 optimizations.

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

No branches or pull requests

1 participant