Releases: webpack/webpack
Releases Β· webpack/webpack
v5.99.8
v5.99.7
Fixes
- Don't skip export generation for
default
reexport (#19463) - Fixed module library export generation for reexport (#19459)
- Avoid module concatenation in child compilation for module library (#19457)
- Ensure HMR recover gracefully when CSS module with error
- Respect
cause
of any errors anderrors
of AggregateError in stats output - Added missing
@types/json-schema
in types
v5.99.6
Fixes
- Respect public path for ES modules
- Fixed generation of module for
module
library when mixing commonjs and esm modules - Always apply
FlagDependencyExportsPlugin
for libraries where it required - Faster logic for dead control flow
- Typescript types
v5.99.5
Fixes
- Control dead flow for labeled and blockless statements
v5.99.4
Fixes
- Fixed terminated state for
if
/else
v5.99.3
Fixes
- Fixed dead control flow with deep nested
if
/else
v5.99.2
Fixes
- Dead control flow for exotic cases
v5.99.1
Fixes
- Dead control flow for many cases
v5.99.0
Fixes
- Fixed a lot of types
- Fixed runtime error when using asset module as entrypoint and runtimeChunk
- JSON generator now preserves
__proto__
property - Fixed when entry module isn't executed when targeting webworker with a runtime chunk
- Do not duplicate modules with import attributes and reexport
- The
module
andmodule
ESM libraries have been union and code generation has been improved - Use a valid output path for errored asset modules
- Remove BOM from JavaScript and CSS files when loader was not used
- Create export for externals for module/modern-module library
- Export unprovided variables for
commonjs-static
library - Forward semicolons from
meta.webpackAST
- Use
xxhash64
forcache.hashAlgorithm
whenexperiments.futureDefaults
enabled - [CSS] Fixed profiling plugin for CSS
- [CSS] Avoid extra module.export output for CSS module
Features
- Add dead control flow check
- Handle
new Worker(import.meta.url)
andnew Worker(new URL(import.meta.url))
syntax - Added ability to generate custom error content for generators
Performance Improvements
- Fixed excessive calls of getAllReferences
- Optimize loc for monomorphic inline caching
Chores
- Switch on
strict
types fortypescript
v5.98.0
Fixes
- Avoid the deprecation message #19062 by @alexander-akait
- Should not escape CSS local ident in JS #19060 by @JSerFeng
- MF parse range not compatible with Safari #19083 by @alexander-akait
- Preserve
filenameTemplate
in new split chunk #19104 by @henryqdineen - Use module IDs for final render order #19184 by @dmichon-msft
- Strip
blob:
protocol when public path isauto
#19199 by @alexander-akait - Respect
output.charset
everywhere #19202 by @alexander-akait - Node async WASM loader generation #19210 by @ashi009
- Correct
BuildInfo
andBuildMeta
type definitions #19200 by @inottn
Performance Improvements
- Improve
FlagDependencyExportsPlugin
for large JSON by depth #19058 by @hai-x - Optimize assign-depths #19193 by @dmichon-msft
- Use
startsWith
for matching instead of converting the string to a regex #19207 by @inottn
Chores
- Bump
nanoid
from 3.3.7 to 3.3.8 #19063 by @dependabot - Fixed incorrect typecast in
DefaultStatsFactoryPlugin
#19156 by @Andarist - Improved
readme.md
by adding video links for understanding webpack #19101 by @Vansh5632 - Typo fix #19205 by @hai-x
- Adopt the new webpack governance model #18804 by @ovflowd
Features
- Implement
/* webpackIgnore: true */
forrequire.resolve
#19201 by @alexander-akait
Continuous Integration
- CI fix #19196 by @alexander-akait
New Contributors
- @Andarist made their first contribution in #19156
- @Vansh5632 made their first contribution in #19101
- @ashi009 made their first contribution in #19210
- @ovflowd made their first contribution in #18804
Full Changelog: v5.97.1...v5.98.0