webpack v5.0.0-beta.17 Release Notes
Release Date: 2020-06-03 // almost 4 years ago-
Known Problems
- ๐ The transitive
move-file
dependency requires node >= 10.17, while webpack is intended to be >= 10.13 compatible. This temporary increases the min node version for this beta release until we found a solution to that.- Fixed, latest patch releases are >= 10.13 compatible
๐ Features
- Using module in an ESM no longer needs the whole namespace object
- 0๏ธโฃ SideEffects flag can follow reexports that are partially dynamic or use a compat default
- ๐
export *
uses more exports info data for better exports - 0๏ธโฃ dynamic
export *
no longer flags the default export as maybe provided - ๐ allow module concatenation even when provided exports are unknown, but used exports are known
- โ add
promise
external, which is like var but awaits the global value in a async module - โ add
import
external, which usesimport()
to load a native ESM - โ add
output.importFunctionName
to change theimport()
to something else, e.g. to a polyfill. - โ remove some unneeded dependencies
- Module Federation
- removed scope shortcut object config for container plugins (BREAKING)
- add ability to pass advanced options to container plugins
- allow to expose an array of modules (similar to entry)
- allow to provide an array of remote locations (they act as fallback)
- await when a promise is returned by the external
- allow to expose an index module which is used when using the remote without subpath
- change exposed keys to be prefixed with
./
(BREAKING) - automatically inferred keys do no longer omit leading non-word chars
- add version handling to shared modules (see #10960 for details, BREAKING)
๐ Bugfixes
- 0๏ธโฃ export default no longer converts function declarations to expressions
- inline external type can also provided when using an array external.
- ๐ fixed a bug in snapshotting that caused changes to be ignored during watching
- โ add missing dependency for correct typings
- Persistent Caching
- DllPlugin related classes are now serializable
Date
s are serializable
๐ Changes
- ๐ merged all asset processing hooks into a new hook
processAssets
with stages - ๐ Modifications to
compilation.asset
after sealing are deprecated
- ๐ The transitive