webpack v5.0.0-beta.19 Release Notes

Release Date: 2020-06-29 // almost 4 years ago
  • ๐Ÿ”‹ Features

    • ๐Ÿ‘ Data Uri are now supported
      • application/json, text/javascript, application/javascript, application/node, application/wasm are supported by default as mimetype
      • added Rule.mimetype to match mimetype in rules
    • ๐Ÿ‘ [Node Chunk Loading] support runtime and entries being in different chunks (e. g. with runtimeChunk single)
    • 0๏ธโƒฃ [splitChunks] defaults for splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests has been increased to 30

    ๐Ÿ›  Bugfixes

    • ๐Ÿ— [Chunk Loading] fix a race condition with chunk loading with multiple webpack builds on a single page with overlapping chunk ids (since beta.18)
      • data-webpack has now a output.uniqueName + ":" prefix
      • data-webpack is not used when no output.uniqueName is specified
    • ๐Ÿ“œ [HMR] callback function in module.hot.accept is now parsed
    • [splitChunks.maxSize] chunks are not unnecessary renamed when not splitted at all
    • [splitChunks.maxSize] no longer generates filenames that only differ in casing
    • ๐Ÿ— [Module Federation] providing modules now also works in incremental builds
    • [Normalization] stats: true now normalizes to stats: { preset: "normal" }
    • ๐Ÿฑ [Stats] fixed as incorrectly inserted new line in the assets table
    • [Jsonp Chunk Loading] fix a problem with non-js chunk in the entrypoint

    ๐Ÿ”„ Changes

    • ๐Ÿ“‡ rename output.jsonpScriptType to output.scriptType as it's now also used for other things than jsonp (e. g. script externals)

    ๐ŸŽ Performance

    • ๐Ÿ‘Œ improvements in SplitChunksPlugin

    Contributing

    • yarn lockfile is now deduplicated and checked by CI