Features
- add
__webpack_is_included__("./some-module")
which returns true when the module is bundled and false when not - priorize eager shared modules over normal shared modules (with the same version), as they are loaded anyway
- add
library.type: "assign-properties"
which merges all exports into a global variable - allow
optimization.innerGraph
fornew URL()
- This allows to detect which URLs are used and drop the module and asset when they are not.
Bugfixes
- only return exports from runtime when needed
- This allows to use
experiments.outputModule: true
withoptimization.runtimeChunk
- This allows to use
- fix a bug that
splitChunk.reuseExistingChunk
doesn't work for entrypoints- This optimized an edge case where a nearly empty entrypoint is created when an entrypoint contains only vendor modules
Developer Experience
- include plugin names in deprecation message for "NormalModuleFactory.xxx is no longer a waterfall hook"
- improve error message when passing an invalid library name