v5.0.0-alpha.20
Pre-release
Pre-release
(based on 4.39.2)
Performance
Compilation/NormalModuleFactory.file/context/missingDependenciesare nowLazySets- 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_modulesdirectories. cache.managedPathsdefaults to thenode_modulesdirectory 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.defaultWebpackdefaults towebpack/libto get webpack and all dependencies.- It's recommended to set
cache.buildDependencies.config: [__filename]inwebpack.config.jsto get the config and all dependencies.
Changes
- Use schema-utils@2 for schema validation
validateSchemaAPI now throws an Error instead of returning an Array of Errors
- Persistent Caching uses the infrastructureLogger for logging
Removals
- remove
cache.loglevel- Use
infrastructureLogging.levelinstead
- Use