yarn webpack 5.0.0-beta.27

latest releases: 5.96.1, 5.96.0, 5.95.0...
4 years ago

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.
  • add output.charset option
    • defaults to true
    • setting it to false omits the charset attribute on injected scripts
  • expose require("webpack-sources") as require("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

Don't miss a new webpack release

NewReleases is sending notifications on new releases.