webpack v5.0.0-beta.27 Release Notes

Release Date: 2020-08-19 // almost 2 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