yarn webpack 5.105.3
v5.105.3

11 hours ago

Patch Changes

  • Context modules now handle rejections correctly. (by @alexander-akait in #20455)

  • Only mark asset modules as side-effect-free when experimental.futureDefaults is set to true, so asset-copying use cases (e.g. import "./x.png") won’t break unless the option is enabled. (by @hai-x in #20535)

  • Add the missing webpack_exports declaration in certain cases when bundling a JS entry together with non-JS entries (e.g., CSS entry or asset module entry). (by @hai-x in #20463)

  • Fixed HMR failure for CSS modules with @import when exportType !== "link". When exportType is not "link", CSS modules now behave like JavaScript modules and don't require special HMR handling, allowing @import CSS to work correctly during hot module replacement. (by @xiaoxiaojx in #20514)

  • Fixed an issue where empty JavaScript files were generated for CSS-only entry points. The code now correctly checks if entry modules have JavaScript source types before determining whether to generate a JS file. (by @xiaoxiaojx in #20454)

  • Do not crash when a referenced chunk is not a runtime chunk. (by @alexander-akait in #20461)

  • Fix some types. (by @alexander-akait in #20412)

  • Ensure that missing module error are thrown after the interception handler (if present), allowing module interception to customize the module factory. (by @hai-x in #20510)

  • Added createRequire support for ECMA modules. (by @stefanbinoj in #20497)

  • Added category for CJS reexport dependency to fix issues with ECMA modules. (by @hai-x in #20444)

  • Implement immutable bytes for bytes import attribute to match tc39 spec. (by @alexander-akait in #20481)

  • Fixed deterministic search for graph roots regardless of edge order. (by @veeceey in #20452)

Don't miss a new webpack release

NewReleases is sending notifications on new releases.