yarn webpack 5.0.0-beta.21

latest releases: 5.94.0, 5.93.0, 5.92.1...
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

Don't miss a new webpack release

NewReleases is sending notifications on new releases.