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

Enable WebPack scope hoisting. #840

Merged
merged 1 commit into from
Nov 27, 2017
Merged

Enable WebPack scope hoisting. #840

merged 1 commit into from
Nov 27, 2017

Conversation

tech4him1
Copy link
Contributor

@tech4him1 tech4him1 commented Nov 23, 2017

- Summary

WebPack 3 now has scope hoisting, which optimizes bundle speed at runtime. It also decreases bundle size, though the change is small. This is basically the main benefit that Rollup was designed with, except failsafe (more info here: https://medium.com/webpack/webpack-freelancing-log-book-week-5-7-4764be3266f5).

For now, this is only enabled for the production build, as it would break Hot Module Reloading.

- Test plan

CMS deploy preview seems to work fine for me (but that probably isn't much good as a test 😁).

- Description for the changelog

Enable WebPack scope hoisting.

- A picture of a cute animal (not mandatory but encouraged)
cris-saur-122006

This is only enabled for the production build, as it breaks Hot Module
Reloading.
@tech4him1 tech4him1 changed the title WIP: Enable WebPack scope hoisting. Enable WebPack scope hoisting. Nov 23, 2017
@erquhart erquhart merged commit ed5bf36 into master Nov 27, 2017
@tech4him1 tech4him1 deleted the scope-hoisting branch November 27, 2017 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants