Skip to content

Releases: webpack/webpack

v5.78.0

05 Apr 18:28
Compare
Choose a tag to compare

Features

Bugfixes

  • [CSS] - Nested atRule's @media or @supports now 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 oneOf rule has been picked multiple times by @xiaoxiaojx in #16477
  • Add createRequire support for node:module prefix by @alexander-akait in #16904
  • Fix bug where self-referencing a package in a shared module failed by @weareoutman in #16685

Performance

Contributor Experience

Open in GitHub Codespaces

New Contributors

Full Changelog: v5.77.0...v5.78.0

v5.77.0

29 Mar 14:23
Compare
Choose a tag to compare

New Features

Developer Experience

  • Improve resolve.extensions error 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

Full Changelog: v5.76.3...v5.77.0

v5.76.3

22 Mar 15:18
Compare
Choose a tag to compare

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, and stream/consumers by @ShenHongFei in #16841
  • webpack bin/cli now properly respects NODE_PATH env variable by @snitin315 in #16808
  • Improve typos in resolveResourceErrorHints by @snitin315 in #16806
  • Add missing loaders token support to moduleFilenameTemplate function call by @pgoldberg in #16756
  • Add gaurd condition for enabledLibraryTypes in internal ContainerPlugin by @PengBoUESTC in #16635

New Contributors

Full Changelog: v5.76.2...v5.76.3

v5.76.2

15 Mar 15:31
Compare
Choose a tag to compare

Bugfixes

  • Fix bug where a missing semicolon in generated bundle output for publicPathRuntime would cause concatenated runtime errors by @snitin315 in #16811
  • Remove redundant semicolons generated in bundle runtime code after onScriptComplete function by @ahaoboy in #16347
  • Fix bug where RealContentHashPlugin was not respecting output.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 ModuleGraph due to instance property declarations occurring outside of constructor by @snitin315 in #16830

Developer Experience

  • Improved internal typings to match webpack-sources typings for Source instances 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

10 Mar 23:13
21be52b
Compare
Choose a tag to compare

Fixed

  • Added assert/strict built-in to NodeTargetPlugin

Revert

v5.76.0

08 Mar 17:53
97b1718
Compare
Choose a tag to compare

Bugfixes

Features

Security

Repo Changes

New Contributors

Full Changelog: v5.75.0...v5.76.0

v5.75.0

09 Nov 15:28
Compare
Choose a tag to compare

Bugfixes

  • experiments.* normalize to false when opt-out
  • avoid NaN%
  • show the correct error when using a conflicting chunk name in code
  • HMR code tests existance of window before 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 @import to extenal CSS when using experimental CSS in node
  • add i64 support 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

25 Jul 08:00
Compare
Choose a tag to compare

Features

  • add resolve.extensionAlias option which allows to alias extensions
    • This is useful when you are forced to add the .js extension to imports when the file really has a .ts extension (typescript + "type": "module")
  • 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 shareScope option for ModuleFederationPlugin
  • 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 HarmonyImportDependency for plugins

v5.73.0

02 Jun 11:25
Compare
Choose a tag to compare

Features

  • add options for default dynamicImportMode and 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 PathData in typings
  • improve error messages with more details

v5.72.1

10 May 10:41
Compare
Choose a tag to compare

Bugfixes

  • fix __webpack_nonce__ with HMR
  • fix in operator in some cases
  • fix json parsing error messages
  • fix module concatenation with using this.importModule
  • upgrade enhanced-resolve