All Versions
76
Latest Version
Avg Release Cycle
3 days
Latest Release
1203 days ago
Changelog History
Page 3
Changelog History
Page 3
-
v5.0.0-rc.5 Changes
October 09, 2020๐ Bugfixes
- ๐ fix crash in
getNumberOfMatchingSizeTypes
- ๐ fix crash in
SideEffectsFlagPlugin
- ๐ fix crash when using
runtimeChunk
and Module Federationshared
- โ add some missing type exports
Migration
- ๐ improve Node.js polyfill message
- ๐ fix crash in
-
v5.0.0-rc.4 Changes
October 07, 2020๐ Features
optimization.sideEffects
will detect simple cases of modules without side effects from the source code now- supported: class and function declarations, variable declarations with pure init expression,
if
,while
,for
,switch
,export
,import
, function calls with pure flag
- supported: class and function declarations, variable declarations with pure init expression,
- โ added a "transitive only" side effects mode which drops the module but keeps dependencies
- This is useful for mini-css-extract-plugin to allow droping the extracted JS, while keeping the CSS dependencies
๐ Bugfixes
- accessing properties of the prototype from imported modules is now possible. They are no longer incorrectly mangled.
Dependencies
- โก๏ธ update schema-utils to major 3
- โก๏ธ update acorn to major 8
-
v5.0.0-rc.3 Changes
September 30, 2020๐ Bugfixes
delete x.y.z
now also works in concatenated modules- ๐ folder and file names containing
#
are now supported
-
v5.0.0-rc.2 Changes
September 29, 2020๐ Features
- [Stats] do not display loader prefix for modules in bold
- ๐ฑ [Stats] improve grouping by path for modules and assets
- โ add
optimization.splitChunks.defaultSizeTypes
to specify size types considered for sizes when only a number is specified- this allows plugins to add default size types
๐ Bugfixes
- ๐ฑ [Stats] fix some space calculation issues for assets and modules space limit
- [Stats] fix filtered item count
- โ remove error when
watch
option is used withoutcallback
and show a deprecation message instead.
-
v5.0.0-rc.1 Changes
September 28, 2020๐ฅ 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
-
v5.0.0-rc.0 Changes
September 20, 2020Full Changelog
Known Problems
delete x.y.z
doesn't work withoptimization.concatenateModules: true
yet.- ๐
mini-css-extract-plugin
is not fully compatible and there a few problems. - 0๏ธโฃ
html-webpack-plugin
doesn't understand the new default automatic publicPath yet. Useoutput.publicPath: ""
instead. - ๐ป
target
doesn't support individual browser versions yet. Use the general targets for now:target: ["web", "es2020"]
- The stable
webpack-cli
shows too verbose output for schema validation problems. new URL
with string not starting with./
or../
works incorrectly- The stats grouping algorithm need still some fine-tuning
-
v5.0.0-beta.33 Changes
September 20, 2020๐ Changes
- ๐ deprecate
stats.warningsFilter
in favor ofignoreWarnings
- We need to filter warnings earlier and not only for display, e. g. for correct ignoring in
hasWarnings()
- We need to filter warnings earlier and not only for display, e. g. for correct ignoring in
๐ Bugfixes
- ๐ fix missing fileDependencies for managed items
- ๐ deprecate
-
v5.0.0-beta.32 Changes
September 18, 2020๐ Features
- ๐ฑ sort assets by size
- โก๏ธ update all dependencies to stable versions only
- 0๏ธโฃ
output.publicPath
is now"auto"
by default when supported by target - โ add
output.publicPath: "auto"
to determine publicPath automatically
๐ Bugfixes
- avoid error for managed paths that only contain a node_modules
-
v5.0.0-beta.31 Changes
September 17, 2020๐ Features
- ๐จ refactor module concatenation to be more flexible
- support non-namespace exports
- allow to concatenate
externals
- allow to concatenate json modules
- โ add a breaking change hint when modules can't be resolve because requests are expected to be fully specified
- โ add support for
imports
field in package.json - โ add
resolve.fallback
option and recommend that for polyfilling
๐ Bugfixes
- ๐ fixes parsing of
this
when in an arrow IIFE - ๐ fix caching in RealContentHashPlugin when assets contain their own hash
- ๐ fix chunk group connections for cases where referenced chunk group is sometimes already included
- [Module Federation] fix circular references of containers when using async externals
- fixes a hanging promise
- [Module Federation] fix circular dependencies of modules between containers
- fixes another hanging promise
- [Module Federation] fix crash when no sharing is used in the container at all
๐ Performance
- ๐ improve performance of deprecated needRebuild method
๐ Deprecations
- ๐ officially deprecate needRebuild in favor of needBuild
- ๐จ refactor module concatenation to be more flexible
-
v5.0.0-beta.30 Changes
September 11, 2020Highlights
- ๐ There will be a Release Candidate soon
- See #11406 for a list of outstanding items
new URL("...", import.meta.url)
is treated as dependency and creates an asset module- ๐ท Worker support
new Worker(new URL("...", import.meta.url))
creates a WebWorker (same fornew SharedWorker
)- known issue:
type: "module"
doesn't work yet navigator.serviceWorker.register(new URL("...", import.meta.url))
creates a ServiceWorker
- ๐ Improved
target
target
option allows versions, e. g.target: "node10.13"
ortarget: "es2020"
target
allows an array of targets, e. g.target: ["web", "es2020"]
๐ Features
- Stats improvements
- Group assets and modules in stats text output by default to keep within space limit
- asset modules are enabled by default (
type: "asset"
) - Put name, version, time, errors/warnings and hash in a single line as summary in the stats
- ๐ท Use
output.wasmLoading
(andoutput.workerWasmLoading
) to specify the wasm loading method (similar tooutput.chunkLoading
) - ๐ New option
externalsPreset
with presets for externals for- node
- nwjs (deprecated)
- electronMain
- electronPreload
- electronRenderer
- web
- webAsync
- defaults choosen based on
target
s
- 0๏ธโฃ mjs experiment is enabled by default
.mjs
and.js
withtype: "module"
in package.json puts ESM in strict mode- no CommonJs allowed
- extensions are required in imports
- no named exports of non-esm modules
- no
__esModule
support (will be added once this landed in node.js) .cjs
and.js
withtype: "commonjs"
in package.json disables ESM support.wasm
withtype: "module"
in package.json also makes extensions required in wasm imports
output.ecmaVersion
is replaced withoutput.environment
which lists features used by webpack
๐ Changes
- Stats improvements
- Hide
hash
by default in stats - Hide
entrypoints
in stats by default when unnecessary - Show only files count in entrypoints when there are too many files
- Hide auxiliary files for
entrypoints
in stats by default
- Hide
๐ Bugfixes
- ๐ improve ASI handling to avoid
Object(...)
wrapping - ๐ fix incorrect disposing of modules when a whole chunk is removed during Hot Module Replacement
- ๐ There will be a Release Candidate soon