Releases: webpack/webpack
Releases · webpack/webpack
v5.66.0
Features
- add
output.library.type: "commonjs-static"
to emit a statically analyse-able commonjs module (for node.js esm interop support) - add
experiments.css
(very experimental)- see #14893
Bugfixes
- fix CORS headers for
experiments.lazyCompilation
- fix
[absolute-resource-path]
for SourceMap module naming - avoid stack overflow when accessing many memory cached cache values in series
Performance
- reduce default
watchOptions.aggregateTimeout
to 20ms
v5.65.0
Features
- static evaluation understands
undefined
now - reduce container entry code by a few chars
- use template literals when available and they make sense
Bugfixes
- handle
singleton
flag withoutrequiredVersion
in Module Federation - upgrade
watchpack
for context time info bugfix
Performance
- improve RegExp in error message formating for non-quadratic performance
Developer Experience
- automatically insert brackets when
output.globalObject
contains a non-trival expression - show error when using
script
type external with invalid syntax - expose types for
Resolver
,StatsOptions
andResolvePluginInstance
Preparations for the future
hashDigestLength
will default to 16 in webpack 6 (experiments.futureDefaults
)
v5.64.4
Bugfixes
- fix tagged template literal evaluation
- fix ModuleFederation with ESM
- fix outputModule with intial splitChunks
Performance
- upgrade watchpack for faster watcher updating
- track file and directory timestamps separately in watchpack and webpack
Developer Experience
- show origin of singleton shared module in mismatch warning
v5.64.3
v5.64.2
v5.64.1
Bugfixes
- fix regexp in managedPaths to exclude additional slash
- make module.accept errorHandler optional in typings
- correctly create an async chunk when using a
require(...).property
inrequire.ensure
- fix cleaning of symlinks in
output.clean: true
- fix change detection with
unsafeCache
withinmanagedPaths
(node_modules) - bump webpack-sources for Stack Overflow bugfix
v5.64.0
v5.63.0
v5.62.2
Bugfixes
- fix
__system_context__
injection when using thelibrary
option on entrypoint - enable
exportsPresence: "error"
by default infutureDefaults
- fix bad performance for a RegExp in Stats printing (with large error messages)
- fix
exportPresence
->exportsPresence
typo - fix a bug with module invalidation when only module id changes with
experiments.cacheUnaffected