Skip to content

Releases: webpack/webpack

v5.81.0

26 Apr 15:06
Compare
Choose a tag to compare

New Features

Bug Fixes

Tests & Contributor Experience

Developer Experience

  • Increase type coverage/documentation for ModuleFilenameHelpers by @TheLarkInn in #17045
  • Increase type coverage/documentation for CommonJsExportsParserPlugin by @TheLarkInn in #17046
  • Increase type coverage/documentation for binarySearchBounds.js by @TheLarkInn in #17058
  • Export MemoryCacheOptions types by @romulof in #17055

Dependencies & Maintenance

New Contributors

Full Changelog: v5.80.0...v5.81.0

v5.80.0

19 Apr 17:17
Compare
Choose a tag to compare

New Features

  • Support destructuring assignment in import.meta by @vankop in #16996
  • Support treeshaking for destructuring assignment with AwaitExpression by @vankop in #16995
  • Introduce errorsSpace, warningsSpace for more readable traces in stats by @vankop in #15450

Bug Fixes

Tests & Contributor Experience

Developer Experience

Dependencies & Maintenance

New Contributors

Full Changelog: v5.79.0...v5.80.0

v5.79.0

12 Apr 15:46
Compare
Choose a tag to compare

New Features

  • webpack will now support simple destructuring scenarios for treeshaking namespaced imports and DefinePlugin by @vankop in #16941

Bugfixes

  • Truncate extremely long module names in DefaultStatsPrinter by @snitin315 in #16882
  • Add [contenthash] template support in DllPlugin's name option by @snitin315 in #16935
  • Fixed a bug where readRecords compiler hook was causing hangs in conjunction with the ReadRecordsPlugin by @snitin315 & @zookatron in #16944
  • webpack can now consume ESM bundles generated by webpack's esm output support by @vankop in #15608
  • [CSS] - webpack now respects CSS's case-insensitivity with atTags like @MEDIA by @alexander-akait in #16915
  • [CSS] - Fixes a bug where crossOriginLoading anonymous would not work when loading styles by @chenjiahan in #16925

Developer Experience

Contributor Experience

New Contributors

Full Changelog: v5.78.0...v5.79.0

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