|Webpack 4 Adds WebAssembly Support|
|Written by Kay Ewbank|
|Monday, 05 March 2018|
The improvements in performance have been reported by beta testers saw build times decrease by between 60 and 98 percent, with some builds going from nine hours to twelve minutes to build. The developers say that the performance improvements:
"also gave us the opportunity to identify some key blocking bugs in loaders and plugins that have since now been fixed."
Some of the improvements to the performance are due to the new version of the plugin system, which means that event hooks and handlers are monomorphic. Webpack has also dropped Node v4. This has, according to the developers, allowed them to add a considerable amount of newer ES6 syntax and data structures, also optimized by V8.
Another useful improvement is the addition of a new config property called mode that can be set to either development or production to provide sensible defaults. In the case of production, the defaults aim to provide:
The development option concentrates on providing:
Webpack 4 is available now on Github.
or email your comment to: firstname.lastname@example.org