Features
- add experimental lazy compilation via
experiments.lazyCompilation: true
for web and node targets- compiles entrypoints and
import()
s only when they are accessed - More details see: #12469
- Known issues:
webpack-dev-server
/webpack serve
opening an entrypoint for the first time, sometimes need a manual refresh.
- compiles entrypoints and
- move some javascript parsing related configuration options from
module
tomodule.parser.javascript
and also allow to set them viamodule.rules
- add
module.parser.javascript.commonjsMagicComments
to enable/* webpackIgnore: true */
forrequire()
calls
Bugfixes
- fix a problem with
webpack.debug.ProfilingPlugin
on Mac when the computer was suspended before. - fix a bug with IIFE handling when the IIFE has parameters with default values