Releases: webpack/webpack
Releases · webpack/webpack
v5.90.0
Bug Fixes
- Fixed inner graph for classes
- Optimized
RemoveParentModulesPluginvia bigint arithmetic - Fixed worklet detection in production mode
- Fixed an error for cyclic importModule
- Fixed types for
ServerandDirent - Added the
fetchPriorityto hmr runtime'sensureChunkfunction - Don't warn about dynamic import for build dependencies
- External module generation respects the
output.environment.arrowFunctionoption - 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
amdexternals andamdlibrary - Fixed a bug in
SideEffectsFlagPluginwith namespace re-exports - Fixed an error message for condition
or - The
strictModuleErrorHandlingis 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
falsefor 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-moduleoption for thenode.__filename/__dirnameand enable it by default for ESM target - Added the
snapshot.unmanagedPathsoption - Exposed the
MultiCompilerOptionstype - [CSS] - Added CSS parser options to enable/disable named exports
- [CSS] - Moved CSS the
exportsOnlyoption 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: v5.89.0...v5.90.0
v5.89.0
New Features
Dependencies & Maintenance
- chore(deps-dev): bump @types/node from 20.3.1 to 20.4.8 by @dependabot in #17568
- docs: add example for stats detailed output by @ersachin3112 in #17420
- docs: add example for stats normal output by @ersachin3112 in #17426
- chore(deps-dev): bump core-js from 3.31.0 to 3.32.0 by @dependabot in #17539
- chore(deps-dev): bump pretty-format from 29.5.0 to 29.6.2 by @dependabot in #17536
- chore(deps-dev): bump @types/node from 20.4.8 to 20.4.9 by @dependabot in #17583
- chore(deps-dev): bump less from 4.1.3 to 4.2.0 by @dependabot in #17580
- chore(deps): bump semver from 5.7.1 to 5.7.2 by @dependabot in #17483
- chore(deps-dev): bump simple-git from 3.19.0 to 3.19.1 by @dependabot in #17427
- chore(deps-dev): bump @types/node from 20.4.9 to 20.6.0 by @dependabot in #17666
Full Changelog: v5.88.2...v5.89.0
v4.47.0
v5.88.2
Bug Fixes
- Fixed a bug where unused identifiers should retain names when using css modules by @burhanuday in #17444
Full Changelog: v5.88.1...v5.88.2
v5.88.1
Developer Experience
- Significantly improve TypeScript coverage for Library Plugins by @alexander-akait in #17414
Full Changelog: v5.88.0...v5.88.1
v5.88.0
New Features
- [CSS] - Use
css/autoas the default css mode by @burhanuday in #17399
Bug Fixes
- Fix bugs related to require.context and layer by @alexander-akait in #17388
- Fix bug in runtime for CSS loading by @alexander-akait in #17400
- Correct indirect call for tagged template expressions using correct this context by @alexander-akait in #17397
- Update environment support for KaiOS browser by @steverep in #17395
- Fix async module runtime code for running top-level-await by @ahabhgk in #17393
Developer Experience
- Add example for stats minimal output by @ersachin3112 in #17406
- Significantly improve type coverage for Dependency, Runtime, Template classes by @alexander-akait in #17394
Dependencies & Maintenance
- Bump browserslist from 4.21.8 to 4.21.9 by @dependabot in #17389
- Bump acorn from 8.8.2 to 8.9.0 by @dependabot in #17402
- Bump eslint from 8.42.0 to 8.43.0 by @dependabot in #17401
- Bump eslint-plugin-jest from 27.2.1 to 27.2.2 by @dependabot in #17407
New Contributors
Full Changelog: v5.87.0...v5.88.0
v5.87.0
New Features
- Implement
fetchPriorityfeature as parser option and magic comment by @alexander-akait in #17249 - [CSS] - Introduce 'css/auto' as a css module type by @ahabhgk in #16577
- [CSS] - Style-specific fields now automatically resolve in package.json by @burhanuday in #17346
- webpack configuration API now accepts "falsy values" loaders and plugins by @alexander-akait in #17339
Bug Fixes
- Fix codecov badge in readme by @burhanuday in #17353
Developer Experience
- Add link to svelte loader for webpack by @burhanuday in #17369
- Increase parser API types in internal plugins across dependency plugins @alexander-akait in #17365
Dependencies & Maintenance
- Bump memfs from 3.5.2 to 3.5.3 by @dependabot in #17347
- Bump webpack-cli from 5.1.3 to 5.1.4 by @dependabot in #17349
- Bump es-module-lexer from 1.2.1 to 1.3.0 by @dependabot in #17362
- Bump @types/node from 20.2.5 to 20.3.0 by @dependabot in #17361
- Bump core-js from 3.30.2 to 3.31.0 by @dependabot in #17360
- Bump browserslist from 4.21.6 to 4.21.8 by @dependabot in #17367
- Bump @types/node from 20.3.0 to 20.3.1 by @dependabot in #17366
New Contributors
@aboktor made their first contribution in #16991 #16989
@silverwind made their first contribution in #17339 via #17329
Full Changelog: v5.86.0...v5.87.0
v5.86.0
New Features
- Improved cache size performance via better handling of serialization for errors and bigints by @alexander-akait in #17282
- Introduce an export default handler function option for
ProgressPluginby @alexander-akait in #17312 - Support passing
RegExptosplitChunks.chunksby @hyf0 in #17332
Bug Fixes
- Fix layer capabilities for
ContextModuletypes by @huozhi in #17310 - Fix compatibility of
__non_webpack_require__with ES modules by @alexander-akait in #17308 - Improve type coverage
Chunk,ChunkGroup, and other plugins by @alexander-akait in #1731 - Do not add
jsextension for eval source maps when extension is not resolvable by @alexander-akait in #17331
Developer Experience
- Improve type coverage for Json Module type and lazy load json-assertions package by @alexander-akait in #17301
Dependencies & Maintenance
- Bump memfs from 3.5.1 to 3.5.2 by @dependabot in #17315
- Bump webpack-cli from 5.1.1 to 5.1.3 by @dependabot in #17314
- Bump eslint from 8.41.0 to 8.42.0 by @dependabot in #17313
New Contributors
Full Changelog: v5.85.1...v5.86.0
v5.85.1
Bug Fixes
- Fix bug in handling barrel imports (#17305) by @bworline in #17307 - NOTE: An internal API
BasicEvaluatedExpression.getMemberRangeStartshas been changed toBasicEvaluatedExpression.getMemberRanges, please see type definition changes and the pull request for more information.
Dependencies & Maintenance
- Bump @types/jest from 29.5.1 to 29.5.2 by @dependabot in #17297
Full Changelog: v5.85.0...v5.85.1
v5.85.0
New Features
- Add
readonlycache mode by @vankop in #15470 - Normalize property accessors for esm namespaces and chained member/call expressions by @bworline in #17203
- Support
environmentin loader context by @alexander-akait in #17281 - Introduce a new syntax for
addModule()support in worklets -*context.audioWorklet.addModule()by @alexander-akait in #17212
Bug Fixes
- Fix type regression with unknown module type strings by @alexander-akait in #17266
Developer Experience
- Use global runtime constants for webpack exports by @burhanuday in #17270
- Add strict mode type coverage for WASM and Runtime code by @alexander-akait in #17267
- Add strict mode type coverage for runtime modules and runtime plugins by @alexander-akait in #17261
- Add types for JSON & Asset Modules including their interfacing plugins by @alexander-akait in #17262
- Add type coverage for Module subclasses and plugins by @alexander-akait in #17272
Dependencies & Maintenance
- Use GitHub Discussions instead of Gitter in issue templates by @snitin315 in #17293
- Bump @types/node from 20.2.3 to 20.2.4 by @dependabot in #17269
- Bump browserslist from 4.21.5 to 4.21.6 by @dependabot in #17275
- Bump @types/node from 20.2.4 to 20.2.5 by @dependabot in #17276
- Bump @babel/core from 7.21.8 to 7.22.1 by @dependabot in #17278
Full Changelog: v5.84.1...v5.85.0

