webpack v5.0.0-alpha.20 Release Notes
Release Date: 2019-08-14 // over 4 years ago-
๐ (based on 4.39.2)
๐ Performance
Compilation/NormalModuleFactory.file/context/missingDependencies
are nowLazySet
s- ๐ Performance improvements in deserialization
- ๐ Performance improvements in module graph building
๐ Features
- โ add
cache.managedPaths
. It is an array of package-manager only managed paths. webpack will avoid hashing/timestamping them, assume the version is unique and will use this as snapshot (for both memory and filesystem cache).- These must be
node_modules
directories. cache.managedPaths
defaults to thenode_modules
directory webpack is inside of.
- These must be
- โ add
cache.buildDependencies
. It is an object of arrays of additional code dependencies of the build. webpack will use an hash of these items and all dependencies to invalidate the filesystem cache.cache.buildDependencies.defaultWebpack
defaults towebpack/lib
to get webpack and all dependencies.- It's recommended to set
cache.buildDependencies.config: [__filename]
inwebpack.config.js
to get the config and all dependencies.
๐ Changes
- ๐ Use schema-utils@2 for schema validation
- ๐ฒ Persistent Caching uses the infrastructureLogger for logging
Removals
- โ remove
cache.loglevel
- Use
infrastructureLogging.level
instead
- Use
Full Changelog
Feedback