webpack v5.0.0-beta.21 Release Notes

Release Date: 2020-07-06 // almost 4 years ago
  • ๐Ÿ”‹ Features

    • ๐Ÿ‘ export * as X from "..." is now supported
    • ๐Ÿ‘ webpack now better understand URLs
      • add support for file: URLs
      • add support for fragments #fragment
      • add new hooks to allow plugins to add custom schemes
    • โž• add support for import.meta
      • import.meta.webpackHot is the HMR API for ESM
      • import.meta.webpack is the webpack major version
      • import.meta.url is the file: url of the current file
    • Module Federation
      • add complete SemVer ranges support (e. g. >=1 <4 || >5 <=7 || 3.4.X || 3.5.0-beta)
      • choose shared version deterministic by uniqueName for better caching
      • remove ability to pass version or requiredVersion as array (only strings are supported)
      • Container API changed: Share Scope format is different now

    ๐Ÿ›  Bugfixes

    • ๐Ÿ‘Œ improve compat layer for MainTemplate and Module.source() to support more webpack 4 plugins
    • Module Federation
      • fix a crash when two runtimes try to remove a script tag
      • make bundles more deterministic to avoid random changes