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
- add support for
import.meta
import.meta.webpackHot
is the HMR API for ESMimport.meta.webpack
is the webpack major versionimport.meta.url
is thefile:
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
orrequiredVersion
as array (only strings are supported) - Container API changed: Share Scope format is different now
- add complete SemVer ranges support (e. g.
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