Releases: webpack/webpack
Releases · webpack/webpack
v5.78.0
Features
Bugfixes
- [CSS] - Nested atRule's
@mediaor@supportsnow properly are replaced with unique identifiers by @noreiller in #15812 - [CSS] - Fix bug where closing parenthesis in CSS were not properly parsed and compiled by @janlent1 in #16864
- Fix an issue where
oneOfrule has been picked multiple times by @xiaoxiaojx in #16477 - Add
createRequiresupport fornode:moduleprefix by @alexander-akait in #16904 - Fix bug where self-referencing a package in a shared module failed by @weareoutman in #16685
Performance
- Make
ErrorHelpersnamed functions; Add types by @TheLarkInn in #16893 - Introduce
ModuleTypeConstantsfor plugins by @TheLarkInn in #16896 - Refactor memory footprint in string usages for multiple plugins by @TheLarkInn in #16894
- Add more module type constants, use them across codebase by @TheLarkInn in #16898
Contributor Experience
- Implement default PR Template to use GitHub Copilot for PR's integration and fix template name usage by @geromegrignon in #16890
- ci: update actions/cache to v3 by @armujahid in #16462
- webpack org Collaborators and Members now have funded GitHub Codespaces!
New Contributors
- @geromegrignon made their first contribution in #16890
- @armujahid made their first contribution in #16462
- @long76 made their first contribution in #16562
- @weareoutman made their first contribution in #16685
Full Changelog: v5.77.0...v5.78.0
v5.77.0
New Features
- Add a new output option,
output.workerPublicPathby @thomastay in #16671
Developer Experience
- Improve
resolve.extensionserror message to suggest when"."is missing before the extension by @snitin315 in #16807
Contributor Experience
- Enable GitHub Copilot for PR's into default Pull Request Template by @TheLarkInn in #16881
New Contributors
- @thomastay made their first contribution in #16671
Full Changelog: v5.76.3...v5.77.0
v5.76.3
Bugfixes
- Non-javascript files will correctly not be imported when using
experiments.outputModule(ES Module Output) by @snitin315 in #16809 - Limit console output progress bar length to 40 when no columns provided by @snitin315 in #16810
- Add missing NodeJS Builtin Modules support for
inspector/promises,readline/promises, andstream/consumersby @ShenHongFei in #16841 - webpack bin/cli now properly respects
NODE_PATHenv variable by @snitin315 in #16808 - Improve typos in
resolveResourceErrorHintsby @snitin315 in #16806 - Add missing
loaderstoken support tomoduleFilenameTemplatefunction call by @pgoldberg in #16756 - Add gaurd condition for
enabledLibraryTypesin internalContainerPluginby @PengBoUESTC in #16635
New Contributors
- @ShenHongFei made their first contribution in #16841
- @pgoldberg made their first contribution in #16756
- @PengBoUESTC made their first contribution in #16635
Full Changelog: v5.76.2...v5.76.3
v5.76.2
Bugfixes
- Fix bug where a missing semicolon in generated bundle output for
publicPathRuntimewould cause concatenated runtime errors by @snitin315 in #16811 - Remove redundant semicolons generated in bundle runtime code after
onScriptCompletefunction by @ahaoboy in #16347 - Fix bug where
RealContentHashPluginwas not respectingoutput.hashSalt's ability to cause a force recalculation of[contenthash]for emitted assets by @dmichon-msft #16789
Performance
- Improve memory and runtime performance of sourcemaps via hoisting Regular Expression literals to stored variables by @TheLarkInn in #15722
- Correct v8 deoptimization in
ModuleGraphdue to instance property declarations occurring outside of constructor by @snitin315 in #16830
Developer Experience
- Improved internal typings to match
webpack-sourcestypings forSourceinstances by @snitin315 in #16805 - Update repo examples to include missing quotation by @snitin315 in #16812
New Contributors
Full Changelog: v5.76.1...v5.76.2
v5.76.1
Fixed
- Added
assert/strictbuilt-in toNodeTargetPlugin
Revert
- Improve performance of
hashRegExplookup by @ryanwilsonperkin in #16759
v5.76.0
Bugfixes
- Avoid cross-realm object access by @Jack-Works in #16500
- Improve hash performance via conditional initialization by @lvivski in #16491
- Serialize
generatedCodeinfo to fix bug in asset module cache restoration by @ryanwilsonperkin in #16703 - Improve performance of
hashRegExplookup by @ryanwilsonperkin in #16759
Features
Security
- CVE-2022-37603 fixed by @akhilgkrishnan in #16446
Repo Changes
- Fix HTML5 logo in README by @jakebailey in #16614
- Replace TypeScript logo in README by @jakebailey in #16613
- Update actions/cache dependencies by @piwysocki in #16493
New Contributors
- @Jack-Works made their first contribution in #16500
- @lvivski made their first contribution in #16491
- @jakebailey made their first contribution in #16614
- @akhilgkrishnan made their first contribution in #16446
- @ryanwilsonperkin made their first contribution in #16703
- @piwysocki made their first contribution in #16493
- @askoufis made their first contribution in #16781
Full Changelog: v5.75.0...v5.76.0
v5.75.0
Bugfixes
experiments.*normalize tofalsewhen opt-out- avoid
NaN% - show the correct error when using a conflicting chunk name in code
- HMR code tests existance of
windowbefore trying to access it - fix
eval-nosources-*actually exclude sources - fix race condition where no module is returned from processing module
- fix position of standalong semicolon in runtime code
Features
- add support for
@importto extenal CSS when using experimental CSS in node - add
i64support to the deprecated WASM implementation
Developer Experience
- expose
EnableWasmLoadingPlugin - add more typings
- generate getters instead of readonly properties in typings to allow overriding them
v5.74.0
Features
- add
resolve.extensionAliasoption which allows to alias extensions- This is useful when you are forced to add the
.jsextension to imports when the file really has a.tsextension (typescript +"type": "module")
- This is useful when you are forced to add the
- add support for ES2022 features like static blocks
- add Tree Shaking support for
ProvidePlugin
Bugfixes
- fix persistent cache when some build dependencies are on a different windows drive
- make order of evaluation of side-effect-free modules deterministic between concatenated and non-concatenated modules
- remove left-over from debugging in TLA/async modules runtime code
- remove unneeded extra 1s timestamp offset during watching when files are actually untouched
- This sometimes caused an additional second build which are not really needed
- fix
shareScopeoption forModuleFederationPlugin - set
"use-credentials"also for same origin scripts
Performance
- Improve memory usage and performance of aggregating needed files/directories for watching
- This affects rebuild performance
Extensibility
- export
HarmonyImportDependencyfor plugins
v5.73.0
Features
- add options for default
dynamicImportModeand prefetch and preload - add support for
import { createRequire } from "module"in source code
Bugfixes
- fix code generation of e. g.
return"field"in Module - fix performance of large JSON modules
- fix performance of async modules evaluation
Developer Experience
- export
PathDatain typings - improve error messages with more details