webpack freelancing log book (week 8)

2017/05/22–2017/05/28

This week nothing exciting happend…

I continued working on Scope Hoisting, doing some bigger tests, trying to fix the bug reported by an early tester.

I also added a reporting feature which reports why modules doesn’t get optimized:

--display-optimization-bailout

Using this you will see how to optimize your bundle for better Scope Hoisting. I probably use this feature to report other optimization bailouts too, but for now it only reports Scope Hoisting bailouts.

Most (harmony) bailouts I come across was the ProvidePlugin. Modules affected by this plugin can’t be concatenated.

Don’t use the ProvidePlugin except for shimming.

Other bailouts include CommonJS modules, but this was expected.


Other big topic I cared about this week was finishing the document for the CSS plan. This is a separate document you can find here:

https://medium.com/webpack/the-new-css-workflow-step-1-79583bd107d7

It’s mostly an internal document. A separate post will be made for the user-facing changes.



webpack is not backed by a big company, unlike many other big Open Source products. The development is funded by donations. Please consider donating if you depend on webpack… (Ask your boss!)

Special thanks to these sponsors: (Top 5)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.