Webpack v5.93.0 Update Bug Fixes and New Features

Webpack is a module packager, and its main purpose is to package JavaScript files for the browser. Webpack v5.93.0 has been released, and the specific update contents are as follows:

Bug fixes

  • Generate the correct relative path of runtime chunks
  • DefinePlugin is quieter under the default log level
  • Fix mangle destructuring default in namespace imports
  • Fix the consumption of eager shared modules when in module federation
  • Remove slashes to get a pretty regexp
  • Calculate the correct contenthash for CSS generator options

New features

  • Added the binary generator option for asset modules to explicitly retain the source map generated by the loader
  • Added the modern-module library value for tree shakable output
  • Added the overrideStrict option to override the strict or non-strict mode of JavaScript modules

Update note: Click

Likes