This PR contains the following updates:
Release Notes
webpack/webpack (webpack)
Compare Source
Fixes
- Supported
extends withenv forbrowserslist - Supported
JSONP fragment format for web workers. - Fixed dynamic import support in workers using
browserslist. - Fixed default defer import mangling.
- Fixed default import of
commonjs externals forSystemJS format. - Fixed context modules to the same file with different import attributes.
- Fixed typescript types.
- Improved
import.meta warning messages to be more clear when used directly. - [CSS] Fixed CC_UPPER_U parsing (E -> U) in tokenizer.
Compare Source
Features
- Added static analyze for dynamic imports
- Added support for
import file from "./file.ext" with { type: "bytes" } to get the content asUint8Array (look atexample) - Added support for
import file from "./file.ext" with { type: "text" } to get the content as text (look atexample) - Added the
snapshot.contextModule to configure snapshots options for context modules - Added the
extractSourceMap option to implement the capabilities of loading source maps by comment, you don't needsource-map-loader (look atexample) - The
topLevelAwait experiment is now stable (you can removeexperiments.topLevelAwait from yourwebpack.config.js) - The
layers experiment is now stable (you can removeexperiments.layers from yourwebpack.config.js) - Added function matcher support in rule options
Fixes
- Fixed conflicts caused by multiple concatenate modules
- Ignore import failure during HMR update with ES modules output
- Keep render module order consistent
- Prevent inlining modules that have
this exports - Removed unused
timeout attribute of script tag - Supported UMD chunk format to work in web workers
- Improved CommonJs bundle to ES module library
- Use
es-lexer formjs files for build dependencies - Fixed support
__non_webpack_require__ for ES modules - Properly handle external modules for CSS
- AssetsByChunkName included assets from
chunk.auxiliaryFiles - Use
createRequire only when output is ES module and target is node - Typescript types
Performance Improvements
- Avoid extra calls for snapshot
- A avoid extra jobs for build dependencies
- Move import attributes to own dependencies
Compare Source
Fixes
- Fixed resolve execution order issue from extra await in async modules
- Avoid empty block for unused statement
- Collect only specific expressions for destructuring assignment
Compare Source
Fixes
- Fixed syntax error when comment is on the last line
- Handle var declaration for
createRequire - Distinguish free variable and tagged variable
Compare Source
Fixes
- Filter deleted assets in
processAdditionalAssets hook - HMR failure in defer module
- Emit assets even if invalidation occurs again
- Export types for serialization and deserialization in plugins and export the
ModuleFactory class - Fixed the failure export of internal function for ES module chunk format
- Fixed
GetChunkFilename failure caused bydependOn entry - Fixed the import of missing dependency chunks
- Fixed when entry chunk depends on the runtime chunk hash
- Fixed
module.exports bundle to ESM library - Adjusted the time of adding a group depending on the fragment of execution time
- Fixed circle dependencies when require
RawModule and condition ofisDeferred - Tree-shakable module library should align preconditions of
allowInlineStartup
Compare Source
Fixes
- Fixed concatenate optimization for ESM that caused undefined export
- Respect the
output.environment.nodePrefixForCoreModules option everywhere - Respect the
output.importMetaName option everywhere - Fixed await async dependencies when accepting them during HMR
- Better typescript types
Features
- Added colors helpers for CLI
- Enable tree-shaking for ESM external modules with named imports
- Added the
deferImport option to parser options
Performance Improvements
- Fixed a regression in module concatenation after implementing deferred import support
- Fixed a potential performance issue in CleanPlugin
- Avoid extra
require in some places
Compare Source
Fixes
- Keep consistent CSS order
- Dependency without the source order attribute must keep their original index
- Keep module traversal consistent across reexport scenarios
Performance Improvements
- Extend
importPhasesPlugin only when enabledeferImport (#19689)
Compare Source
Fixes
- Tree-shaking unused ignored modules
- [Types] Compatibility with old Node.js versions
Compare Source
Fixes
- Fixed the case where an ES modules entry chunk depends on the runtime chunk hash
- Handle function exports in webpack module wrapper
- Ensure dependent chunks are imported before startup & fix duplicate export of 'default'
- Generate lose closing brace when exports are unprovided
- CleanPlugin doesn't unlink same file twice
- Fixed unexpected error codes from fs.unlink on Windows
- Typescript types
Features
- HMR support for ES modules output
- ES module output mode now fully supports
splitChunks when external variables and runtimeChunk are not set. - Added support
using keyword - Implemented tc39Defer Module Evaluation (experiment)
- Support dynamic template literals expressions for
new URL(...) - Enable ES modules worker chunk loading for Node.js targets
- Improved support for destructing in DefinePlugin
- AddedVirtualUrlPlugin to support
virtual: scheme
Performance Improvements
- Remove useless startup entrypoint runtime for ES modules output
- Cache
new URL(...) evaluate expression
Compare Source
Fixes
- HMR might fail if there are new initial chunks
- Destructuring namespace import with default
- Destructuring namespace import with computed-property
- Generate valid code for es export generation for multiple module entries
- Fixed public path issue for ES modules
- Asset modules work when lazy compilation used
- Eliminate unused statements in certain scenarios
- Fixed regression with location and order of dependencies
- Fixed typescript types
Compare Source
Fixes
- Fixed type error with latest
@types/node - Fixed typescript types
Compare Source
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
Compare Source
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
Compare Source
Fixes
- Control dead flow for labeled and blockless statements
Compare Source
Fixes
- Fixed terminated state for
if/else
Compare Source
Fixes
- Fixed dead control flow with deep nested
if/else
Compare Source
Fixes
- Dead control flow for exotic cases
Compare Source
Fixes
- Dead control flow for many cases
Compare Source
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
Compare Source
Fixes
Performance Improvements
Chores
Features
Continuous Integration
New Contributors
Full Changelog:webpack/webpack@v5.97.1...v5.98.0
Compare Source
Bug Fixes
- Performance regression
- Sub define key should't be renamed when it's a defined variable
Compare Source
Bug Fixes
- Don't crash with filesystem cache and unknown scheme
- Generate a valid code when
output.iife istrue and output.library.type isumd - Fixed conflict variable name with concatenate modules and runtime code
- Merge duplicate chunks before
- Collisions in ESM library
- Use recursive search for versions of shared dependencies
- [WASM] Don't crash WebAssembly with Reference Types (sync and async)
- [WASM] Fixed wasm loading for sync and async webassembly
- [CSS] Don't add
[uniqueName] tolocalIdentName when it is empty - [CSS] Parsing strings on Windows
- [CSS] Fixed CSS local escaping
New Features
- Added support for injecting debug IDs
- Export the
MergeDuplicateChunks plugin - Added universal loading for JS chunks and JS worker chunks (only ES modules)
- [WASM] Added universal loading for WebAssembly chunks (only for async WebAssembly)
- [CSS] Allow initial CSS chunks to be placed anywhere -the
output.cssHeadDataCompression option was deleted - [CSS] Added universal loading for CSS chunks
- [CSS] Parse ICSS
@value at-rules in CSS modules - [CSS] Parse ICSS
:import rules in CSS modules - [CSS] Added the
url andimport options for CSS - [CSS] Allow to import custom properties in CSS modules
Performance
- Faster Queue implementation, also fixed queue iterator state in dequeue method to ensure correct behavior after item removal
Compare Source
Bug Fixes
- [Types] Add
@types/eslint-scope to dependencieS - [Types] Fixed regression in
validate
Compare Source
Bug Fixes
- Fixed Module Federation should track all referenced chunks
- Handle Data URI without base64 word
- HotUpdateChunk have correct runtime when modified with new runtime
- Order of chunks ids in generated chunk code
- No extra Javascript chunks when using asset module as an entrypoint
- Use optimistically logic for
output.environment.dynamicImport to determine chunk format when no browserslist or target - Collision with global variables for
optimization.avoidEntryIife - Avoid through variables in inlined module
- Allow chunk template strings in
output.devtoolNamespace - No extra runtime for get javascript/css chunk filename
- No extra runtime for prefetch and preload in JS runtime when it was unsed in CSS
- Avoid cache invalidation using ProgressPlugin
- Increase parallelism when using
importModule on the execution stage - Correctly parsing string in
export andimport - Typescript types
- [CSS]
css/auto considers a module depending on its filename ascss (pure CSS) orcss/local, before it wascss/global andcss/local - [CSS] Always interpolate classes even if they are not involved in export
- [CSS] No extra runtime in Javascript runtime chunks for asset modules used in CSS
- [CSS] No extra runtime in Javascript runtime chunks for external asset modules used in CSS
- [CSS] No extra runtime for the
node target - [CSS] Fixed
url()s and@import parsing - [CSS] Fixed - emit a warning on broken :local and :global
New Features
- Export CSS and ESM runtime modules
- Single Runtime Chunk and Federation eager module hoisting
- [CSS] Support
/* webpackIgnore: true */ for CSS files - [CSS] Support
src() support - [CSS] CSS nesting in CSS modules
Compare Source
Bug Fixes
- Fixed hanging when attempting to read a symlink-like file that it can't read
- Handle
default for import context element dependency - Merge duplicate chunks call after split chunks
- Generate correctly code for dynamically importing the same file twice and destructuring
- Use content hash as [base] and [name] for extracted DataURI's
- Distinguish
module andimport inmodule-import for externalsimport's - [Types] Make
EnvironmentPlugin default values types less strict - [Types] Typescript 5.6 compatibility
New Features
- Add new
optimization.avoidEntryIife option (true by default for theproduction mode) - Pass output.hash* options to loader context
Performance
- Avoid unneeded re-visit in build chunk graph
Compare Source
Bug Fixes
- Added runtime condition for harmony reexport checked
- Handle properly
data/http/https protocols in source maps - Make
bigint optimistic when browserslist not found - Move@types/eslint-scope to dev deps
- Related in asset stats is now always an array when no related found
- Handle ASI for export declarations
- Mangle destruction incorrect with export named default properly
- Fixed unexpected asi generation with sequence expression
- Fixed a lot of types
New Features
- Added new external type "module-import"
- Support
webpackIgnore fornew URL() construction - [CSS]
@import pathinfo support
Security
- Fixed DOM clobbering in auto public path
Compare Source
Bug Fixes
- Generate correct relative path to runtime chunks
- Makes
DefinePlugin quieter under default log level - Fixed mangle destructuring default in namespace import
- Fixed consumption of eager shared modules for module federation
- Strip slash for pretty regexp
- Calculate correct contenthash for CSS generator options
New Features
- Added the
binary generator option for asset modules to explicitly keep source maps produced by loaders - Added the
modern-module library value for tree shakable output - Added the
overrideStrict option to override strict or non-strict mode for javascript modules
Compare Source
Bug Fixes
- Doesn't crash with an error when the css experiment is enabled and contenthash is used
Compare Source
Bug Fixes
- Correct tidle range's comutation for module federation
- Consider runtime for pure expression dependency update hash
- Return value in the
subtractRuntime function for runtime logic - Fixed failed to resolve promise when eager import a dynamic cjs
- Avoid generation extra code for external modules when remapping is not required
- The
css/global type now handles the exports name - Avoid hashing for
@keyframe and@property at-rules incss/global type - Fixed mangle with destructuring for JSON modules
- The
stats.hasWarnings() method now respects theignoreWarnings option - Fixed
ArrayQueue iterator - Correct behavior of
__webpack_exports_info__.a.b.canMangle - Changed to the correct plugin name for the
CommonJsChunkFormatPlugin plugin - Set the
chunkLoading option to theimport when environment is unknown and output is module - Fixed when runtimeChunk has no exports when
module chunkFormat used - [CSS] Fixed parsing minimized CSS import
- [CSS] URLs in CSS files now have correct public path
- [CSS] The
css module type should not allow parser to switch mode - [Types] Improved context module types
New Features
- Added platform target properties to compiler
- Improved multi compiler cache location and validating it
- Support
import attributes spec (with keyword) - Support
node: prefix for Node.js core modules in runtime code - Support prefetch/preload for module chunk format
- Support "..." in the
importsFields option for resolver - Root module is less prone to be wrapped in IIFE
- Export
InitFragment class for plugins - Export
compileBooleanMatcher util for plugins - Export
InputFileSystem andOutputFileSystem types - [CSS] Support the
esModule generator option for CSS modules - [CSS] Support CSS when chunk format is module
Compare Source
Bug Fixes
- Deserializer for ignored modules doesn't crash
- Allow the
unsafeCache option to be a proxy object - Normalize the
snapshot.unmanagedPaths option - Fixed
fs types - Fixed resolve's plugins types
- Fixed wrongly calculate postOrderIndex
- Fixed watching types
- Output import attrbiutes/import assertions for external JS imports
- Throw an error when DllPlugin needs to generate multiple manifest files, but the path is the same
- [CSS] Output
layer/supports/media for external CSS imports
New Features
- Allow to customize the stage of BannerPlugin
- [CSS] Support CSS exports convention
- [CSS] support CSS local ident name
- [CSS] Support
__webpack_nonce__ for CSS chunks - [CSS] Support
fetchPriority for CSS chunks - [CSS] Allow to use LZW to compress css head meta (enabled in the
production mode by default) - [CSS] Support prefetch/preload for CSS chunks
Compare Source
Bug Fixes
- don't mangle when destructuring a reexport
- types for
Stats.toJson() andStats.toString() - many internal types
- [CSS] clean up export css local vars
Perf
- simplify and optimize chunk graph creation
Compare Source
Bug Fixes
- use
Math.imul infnv1a32 to avoid loss of precision, directly hash UTF16 values - the
setStatus() of the HMR module should not return an array, which may cause infinite recursion __webpack_exports_info__.xxx.canMangle shouldn't always same as default- mangle export with destructuring
- use new runtime to reconsider skipped connections
activeState - make dynamic import optional in
try/catch - improve auto publicPath detection
Dependencies & Maintenance
- improve CI setup and include Node.js@21
Compare Source
Bug Fixes
- set
unmanagedPaths in defaults - correct
preOrderIndex andpostOrderIndex - add fallback for MIME mismatch error in async wasm loading
- browsers versions of ECMA features
Performance
- optimize
compareStringsNumeric - optimize
numberHash using 32-bit FNV1a for small ranges, 64-bit for larger - reuse VM context across webpack magic comments
Compare Source
Bug Fixes
- Fixed inner graph for classes
- Optimized
RemoveParentModulesPlugin via bigint arithmetic - Fixed worklet detection in production mode
- Fixed an error for cyclic importModule
- Fixed types for
Server andDirent - Added the
fetchPriority to hmr runtime'sensureChunk function - Don't warn about dynamic import for build dependencies
- External module generation respects the
output.environment.arrowFunction option - Fixed consumimng shared runtime module logic
- Fixed a runtime logic of multiple chunks
- Fixed destructing assignment of dynamic import json file
- Passing errors array for a module hash
- Added
/*#__PURE__*/ to generatedJSON.parse() - Generated a library manifest after clean plugin
- Fixed non
amd externals andamd library - Fixed a bug in
SideEffectsFlagPlugin with namespace re-exports - Fixed an error message for condition
or - The
strictModuleErrorHandling is now working - Clean up child compilation chunk graph to avoid memory leak
- [CSS] - Fixed CSS import prefer relative resolution
- [CSS] - Fixed CSS runtime chunk loading error message
New Features
- Allow to set
false for dev server inwebpack.config.js - Added a warning for async external when not supported
- Added a warning for async module when not supported
- Added the
node-module option for thenode.__filename/__dirname and enable it by default for ESM target - Added the
snapshot.unmanagedPaths option - Exposed the
MultiCompilerOptions type - [CSS] - Added CSS parser options to enable/disable named exports
- [CSS] - Moved CSS the
exportsOnly option to CSS generator options
Dependencies & Maintenance
- use node.js LTS version for lint
- bump actions/cache from 3 to 4
- bump prettier from 3.2.1 to 3.2.3
- bump assemblyscript
- bump actions/checkout from 3 to 4
Full Changelog:webpack/webpack@v5.89.0...v5.90.0
Compare Source
New Features
Dependencies & Maintenance
Full Changelog:webpack/webpack@v5.88.2...v5.89.0
Compare Source
Bug Fixes
- Fixed a bug where unused identifiers should retain names when using css modules by@burhanuday in#17444
Full Changelog:webpack/webpack@v5.88.1...v5.88.2
Compare Source
Developer Experience
Full Changelog:webpack/webpack@v5.88.0...v5.88.1
Compare Source
New Features
Bug Fixes
Developer Experience
Dependencies & Maintenance
New Contributors
Full Changelog:webpack/webpack@v5.87.0...v5.88.0
Compare Source
New Features
Bug Fixes
Developer Experience
Dependencies & Maintenance
New Contributors
@aboktor made their first contribution in#16991#16989
@silverwind made their first contribution in#17339 via#17329
Full Changelog:webpack/webpack@v5.86.0...v5.87.0
Compare Source
New Features
Bug Fixes
Developer Experience
Dependencies & Maintenance
New Contributors
Full Changelog:webpack/webpack@v5.85.1...v5.86.0
Compare Source
Bug Fixes
- Fix bug in handling barrel imports (#17305) by@bworline in#17307 -NOTE: An internal API
BasicEvaluatedExpression.getMemberRangeStarts has been changed toBasicEvaluatedExpression.getMemberRanges, please see type definition changes and the pull request for more information.
Dependencies & Maintenance
Full Changelog:webpack/webpack@v5.85.0...v5.85.1
Compare Source
New Features
Bug Fixes
Developer Experience
Dependencies & Maintenance
Full Changelog:webpack/webpack@v5.84.1...v5.85.0
Compare Source
Bug Fixes
Dependencies & Maintenance
Full Changelog:webpack/webpack@v5.84.0...v5.84.1
Compare Source
New Features
Bug Fixes
Developer Experience
Dependencies & Maintenance
New Contributors
Full Changelog:webpack/webpack@v5.83.1...v5.84.0
Compare Source
Bug Fixes
Full Changelog:webpack/webpack@v5.83.0...v5.83.1
Compare Source
New Features
Bug Fixes
Developer Experience
Dependencies & Maintenance
Configuration
📅Schedule: Branch creation - "every weekend" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated byMend Renovate. View therepository job log.
Uh oh!
There was an error while loading.Please reload this page.
This PR contains the following updates:
4.47.0->5.102.1Release Notes
webpack/webpack (webpack)
v5.102.1Compare Source
Fixes
extendswithenvforbrowserslistJSONPfragment format for web workers.browserslist.commonjsexternals forSystemJSformat.import.metawarning messages to be more clear when used directly.v5.102.0Compare Source
Features
import file from "./file.ext" with { type: "bytes" }to get the content asUint8Array(look atexample)import file from "./file.ext" with { type: "text" }to get the content as text (look atexample)snapshot.contextModuleto configure snapshots options for context modulesextractSourceMapoption to implement the capabilities of loading source maps by comment, you don't needsource-map-loader(look atexample)topLevelAwaitexperiment is now stable (you can removeexperiments.topLevelAwaitfrom yourwebpack.config.js)layersexperiment is now stable (you can removeexperiments.layersfrom yourwebpack.config.js)Fixes
thisexportstimeoutattribute of script tages-lexerformjsfiles for build dependencies__non_webpack_require__for ES moduleschunk.auxiliaryFilescreateRequireonly when output is ES module and target is nodePerformance Improvements
v5.101.3Compare Source
Fixes
v5.101.2Compare Source
Fixes
createRequirev5.101.1Compare Source
Fixes
processAdditionalAssetshookModuleFactoryclassGetChunkFilenamefailure caused bydependOnentrymodule.exportsbundle to ESM libraryRawModuleand condition ofisDeferredallowInlineStartupv5.101.0Compare Source
Fixes
output.environment.nodePrefixForCoreModulesoption everywhereoutput.importMetaNameoption everywhereFeatures
deferImportoption to parser optionsPerformance Improvements
requirein some placesv5.100.2Compare Source
Fixes
Performance Improvements
importPhasesPluginonly when enabledeferImport(#19689)v5.100.1Compare Source
Fixes
v5.100.0Compare Source
Fixes
Features
splitChunkswhen external variables and runtimeChunk are not set.usingkeywordnew URL(...)virtual:schemePerformance Improvements
new URL(...)evaluate expressionv5.99.9Compare Source
Fixes
v5.99.8Compare Source
Fixes
@types/nodev5.99.7Compare Source
Fixes
defaultreexport (#19463)causeof any errors anderrorsof AggregateError in stats output@types/json-schemain typesv5.99.6Compare Source
Fixes
modulelibrary when mixing commonjs and esm modulesFlagDependencyExportsPluginfor libraries where it requiredv5.99.5Compare Source
Fixes
v5.99.4Compare Source
Fixes
if/elsev5.99.3Compare Source
Fixes
if/elsev5.99.2Compare Source
Fixes
v5.99.1Compare Source
Fixes
v5.99.0Compare Source
Fixes
__proto__propertymoduleandmoduleESM libraries have been union and code generation has been improvedcommonjs-staticlibrarymeta.webpackASTxxhash64forcache.hashAlgorithmwhenexperiments.futureDefaultsenabledFeatures
new Worker(import.meta.url)andnew Worker(new URL(import.meta.url))syntaxPerformance Improvements
Chores
stricttypes fortypescriptv5.98.0Compare Source
Fixes
filenameTemplatein new split chunk#19104 by@henryqdineenblob:protocol when public path isauto#19199 by@alexander-akaitoutput.charseteverywhere#19202 by@alexander-akaitBuildInfoandBuildMetatype definitions#19200 by@inottnPerformance Improvements
FlagDependencyExportsPluginfor large JSON by depth#19058 by@hai-xstartsWithfor matching instead of converting the string to a regex#19207 by@inottnChores
nanoidfrom 3.3.7 to 3.3.8#19063 by@dependabotDefaultStatsFactoryPlugin#19156 by@Andaristreadme.mdby adding video links for understanding webpack#19101 by@Vansh5632Features
/* webpackIgnore: true */forrequire.resolve#19201 by@alexander-akaitContinuous Integration
New Contributors
Full Changelog:webpack/webpack@v5.97.1...v5.98.0
v5.97.1Compare Source
Bug Fixes
v5.97.0Compare Source
Bug Fixes
output.iifeistrueand output.library.type isumd[uniqueName]tolocalIdentNamewhen it is emptyNew Features
MergeDuplicateChunkspluginoutput.cssHeadDataCompressionoption was deleted@valueat-rules in CSS modules:importrules in CSS modulesurlandimportoptions for CSSPerformance
v5.96.1Compare Source
Bug Fixes
@types/eslint-scopeto dependencieSvalidatev5.96.0Compare Source
Bug Fixes
output.environment.dynamicImportto determine chunk format when no browserslist or targetoptimization.avoidEntryIifeoutput.devtoolNamespaceimportModuleon the execution stageexportandimportcss/autoconsiders a module depending on its filename ascss(pure CSS) orcss/local, before it wascss/globalandcss/localnodetargeturl()s and@importparsingNew Features
/* webpackIgnore: true */for CSS filessrc()supportv5.95.0Compare Source
Bug Fixes
defaultfor import context element dependencymoduleandimportinmodule-importfor externalsimport'sEnvironmentPlugindefault values types less strictNew Features
optimization.avoidEntryIifeoption (trueby default for theproductionmode)Performance
v5.94.0Compare Source
Bug Fixes
data/http/httpsprotocols in source mapsbigintoptimistic when browserslist not foundNew Features
webpackIgnorefornew URL()construction@importpathinfo supportSecurity
v5.93.0Compare Source
Bug Fixes
DefinePluginquieter under default log levelNew Features
binarygenerator option for asset modules to explicitly keep source maps produced by loadersmodern-modulelibrary value for tree shakable outputoverrideStrictoption to override strict or non-strict mode for javascript modulesv5.92.1Compare Source
Bug Fixes
v5.92.0Compare Source
Bug Fixes
subtractRuntimefunction for runtime logiccss/globaltype now handles the exports name@keyframeand@propertyat-rules incss/globaltypestats.hasWarnings()method now respects theignoreWarningsoptionArrayQueueiterator__webpack_exports_info__.a.b.canMangleCommonJsChunkFormatPluginpluginchunkLoadingoption to theimportwhen environment is unknown and output is modulemodulechunkFormat usedcssmodule type should not allow parser to switch modeNew Features
import attributesspec (withkeyword)node:prefix for Node.js core modules in runtime codeimportsFieldsoption for resolverInitFragmentclass for pluginscompileBooleanMatcherutil for pluginsInputFileSystemandOutputFileSystemtypesesModulegenerator option for CSS modulesv5.91.0Compare Source
Bug Fixes
unsafeCacheoption to be a proxy objectsnapshot.unmanagedPathsoptionfstypeslayer/supports/mediafor external CSS importsNew Features
__webpack_nonce__for CSS chunksfetchPriorityfor CSS chunksproductionmode by default)v5.90.3Compare Source
Bug Fixes
Stats.toJson()andStats.toString()Perf
v5.90.2Compare Source
Bug Fixes
Math.imulinfnv1a32to avoid loss of precision, directly hash UTF16 valuessetStatus()of the HMR module should not return an array, which may cause infinite recursion__webpack_exports_info__.xxx.canMangleshouldn't always same as defaultactiveStatetry/catchDependencies & Maintenance
v5.90.1Compare Source
Bug Fixes
unmanagedPathsin defaultspreOrderIndexandpostOrderIndexPerformance
compareStringsNumericnumberHashusing 32-bit FNV1a for small ranges, 64-bit for largerv5.90.0Compare Source
Bug Fixes
RemoveParentModulesPluginvia bigint arithmeticServerandDirentfetchPriorityto hmr runtime'sensureChunkfunctionoutput.environment.arrowFunctionoption/*#__PURE__*/to generatedJSON.parse()amdexternals andamdlibrarySideEffectsFlagPluginwith namespace re-exportsorstrictModuleErrorHandlingis now workingNew Features
falsefor dev server inwebpack.config.jsnode-moduleoption for thenode.__filename/__dirnameand enable it by default for ESM targetsnapshot.unmanagedPathsoptionMultiCompilerOptionstypeexportsOnlyoption to CSS generator optionsDependencies & Maintenance
Full Changelog:webpack/webpack@v5.89.0...v5.90.0
v5.89.0Compare Source
New Features
Dependencies & Maintenance
Full Changelog:webpack/webpack@v5.88.2...v5.89.0
v5.88.2Compare Source
Bug Fixes
Full Changelog:webpack/webpack@v5.88.1...v5.88.2
v5.88.1Compare Source
Developer Experience
Full Changelog:webpack/webpack@v5.88.0...v5.88.1
v5.88.0Compare Source
New Features
css/autoas the default css mode by@burhanuday in#17399Bug Fixes
Developer Experience
Dependencies & Maintenance
New Contributors
Full Changelog:webpack/webpack@v5.87.0...v5.88.0
v5.87.0Compare Source
New Features
fetchPriorityfeature as parser option and magic comment by@alexander-akait in#17249Bug Fixes
Developer Experience
Dependencies & Maintenance
New Contributors
@aboktor made their first contribution in#16991#16989
@silverwind made their first contribution in#17339 via#17329
Full Changelog:webpack/webpack@v5.86.0...v5.87.0
v5.86.0Compare Source
New Features
ProgressPluginby@alexander-akait in#17312RegExptosplitChunks.chunksby@hyf0 in#17332Bug Fixes
ContextModuletypes by@huozhi in#17310__non_webpack_require__with ES modules by@alexander-akait in#17308Chunk,ChunkGroup, and other plugins by@alexander-akait in#1731jsextension for eval source maps when extension is not resolvable by@alexander-akait in#17331Developer Experience
Dependencies & Maintenance
New Contributors
Full Changelog:webpack/webpack@v5.85.1...v5.86.0
v5.85.1Compare Source
Bug Fixes
BasicEvaluatedExpression.getMemberRangeStartshas been changed toBasicEvaluatedExpression.getMemberRanges, please see type definition changes and the pull request for more information.Dependencies & Maintenance
Full Changelog:webpack/webpack@v5.85.0...v5.85.1
v5.85.0Compare Source
New Features
readonlycache mode by@vankop in#15470environmentin loader context by@alexander-akait in#17281addModule()support in worklets -*context.audioWorklet.addModule()by@alexander-akait in#17212Bug Fixes
Developer Experience
Dependencies & Maintenance
Full Changelog:webpack/webpack@v5.84.1...v5.85.0
v5.84.1Compare Source
Bug Fixes
Dependencies & Maintenance
Full Changelog:webpack/webpack@v5.84.0...v5.84.1
v5.84.0Compare Source
New Features
appendoption as a function by@snitin315 in#17252Bug Fixes
@importby@alexander-akait in#17229Developer Experience
JavascriptParserandModuleDependencysubclasses by@alexander-akait in#17236strict-mode quality for Configuration/Normalization objects by@alexander-akait in#17247with { type: "json" }by@alexander-akait in#17230Dependencies & Maintenance
New Contributors
Full Changelog:webpack/webpack@v5.83.1...v5.84.0
v5.83.1Compare Source
Bug Fixes
Full Changelog:webpack/webpack@v5.83.0...v5.83.1
v5.83.0Compare Source
New Features
Bug Fixes
chunkgroup.groupsIterablereturn type by@TheLarkInn in#17196Developer Experience
ChunkGroupto type definitions by@TheLarkInn in#17201NormalModuleFactory'sResolveDatatype to public interface by@TheLarkInn in#17195compilation.afterChunkshook by@TheLarkInn in#17202Dependencies & Maintenance
Configuration
📅Schedule: Branch creation - "every weekend" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated byMend Renovate. View therepository job log.