webpack v5.0.0-rc.1 Release Notes
Release Date: 2020-09-28 // over 3 years ago-
๐ฅ Breaking Changes
- 0๏ธโฃ uses
target: "browserslist"
as default when a browserslist config has been found, otherwise fallback totarget: "web"
as usual- This could have unexpected changed to the EcmaScript version of the generated code
- In same cases this might causes builds to fail because browserslist contain web and node versions
- In most cases we expect this to simplify migration while still allowing to generate better code
- This partially reverts a breaking change: Instead of changing the generated code from ES5 to ES6, this now changes it from ES5 to an automatic version depending on browserslist when available
๐ Features
- โ add support for
target: "browserslist"
and more advanced options - ๐ฆ expose more classes as needed by plugins
- โ add
Compiler.watching
- โ add
parser.worker
for javascript files to allow to modify which syntax is special for WebWorker support - ๐ allow
output.chunkFilename
to be a function via schema - ๐ allow RegExp for
watchOptions.ignored
via schema - โ add
resolve.preferRelative
option, which allows to resolve module requests also as relative requests
Migration
- โ add more hints regarding breaking changes in config
- ๐ improve deprecation layer for Array -> Set to allow accessing the first index
- ๐ allow to use
splitChunks
name
to move modules to an parent chunk
๐ Bugfixes
- avoid some errors in dependencies when target module failed
- when min(Remaingin)Size is violated, use only modules that are fine, instead of failing for all modules
- ๐ fix infinite recursion when having a circular symlink and a context containing it
- โ warning for importing an disposed module displays the correct module
- ๐ fix too wide hash for javascript chunks that caused unnecessary invalidation of the rendered files
- ๐ fix
new URL("relative/file.png", import.meta.url)
to resolve relative - โก๏ธ update webpack-sources to fix crash with source "." is not in SourceMap
- ๐ fix stack overflow in resolving
- 0๏ธโฃ uses