Features
- static analysis for CommonJS now supports reexports via
module.exports = require("...")
module.exports.a.b.c = require("...").a.b.c
- Unused exports for these constructs are elimiated, but export names are not mangled yet
- add
optimization.realContentHash
option- defaults to
true
in production mode - a real content hash is calculated for
[contenthash]
after asset processing, e. g. for minimizing etc.
- defaults to
- add
output.charset
option- defaults to
true
- setting it to false omits the
charset
attribute on injected scripts
- defaults to
- expose
require("webpack-sources")
asrequire("webpack").sources
- avoids version conflict with different webpack-sources version
- webpack should be consumes as peerDependecy by plugins
Bugfixes
- fixes a crash with
TypeError: Cannot mix BigInt and other types, use explicit conversions
in the SplitChunksPlugin in rare edge cases - Persistent Cache can serialize unaffected cache items even when other cache items fail to serialize
- Shows all serializing problems as warnings