All Versions
76
Latest Version
Avg Release Cycle
3 days
Latest Release
1397 days ago
Changelog History
Page 6
Changelog History
Page 6
-
v5.0.0-alpha.23 Changes
August 27, 2019๐ (based on 4.39.3)
๐ Features
- โ add option
output.ecmaVersion
to specify level of generated code emitted by webpack- By using arrow functions we can emit smaller code, i. e. for exports
- By using const variables we can emit more correct code for
export default
๐ Changes
- 0๏ธโฃ (BREAKING) changed default of
output.ecmaVersion
from implict5
to2015
- This might be incompatible with some older browser.
- If you need support for these browser use
output.ecmaVersion: 5
.
Full Changelog
Feedback
- โ add option
-
v5.0.0-alpha.22 Changes
August 23, 2019๐ (based on 4.39.2)
๐ Improvements
- ๐ Improve ASI detection to avoid
Object(...)
in favor of(0,...)
- This improves bundles size
- Merge multiple exports via
__webpack_require__.d
into a single statement- This improves bundles size
Full Changelog
Feedback
- ๐ Improve ASI detection to avoid
-
v5.0.0-alpha.21 Changes
August 22, 2019๐ (based on 4.39.2)
๐ Features
- โฌ๏ธ Upgrade to acorn 7
- Persistent Caching
- track dependencies while resolving build dependencies to snapshot them
- when build dependencies resolving snapshot is invalid, re-resolve build dependencies to see if something changed
- new option
cache.immutablePaths
, similar tocache.managedPaths
but assumes that existing content of this folder never changes. Defaults to yarn cache when PnP is used. - cache.cacheDirectory defaults to
node_modules/.cache/webpack
whenpackage.json
exists somewhere above cwd,.pnp/.cache/webpack
when.pnp.js
exists,.cache/webpack
otherwise.
- add
__webpack_exports_info__
module API
๐ Bugfixes
- ๐ fix a bug where external default imports in concatenated modules where incorrectly generated
- ๐ improve usage/provision info for nested exports
Full Changelog
Feedback
-
v5.0.0-alpha.20 Changes
August 14, 2019๐ (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
-
v5.0.0-alpha.19 Changes
August 06, 2019๐ Features
- โ add
afterDone
hook to Compiler - โฌ๏ธ upgrade watchpack, which adds
watchOptions.followSymlinks
- experimental -> experiments
- rename
webassembly/async-experimental
towebassembly/async
- rename
webassembly/experimental
towebassembly/sync
- add
experiments.syncWebAssembly
- add
experiments.asyncWebAssembly
- rename
- โ add
asset
module type experiment- add
experiments.asset
- add
output.assetModuleFilename
(string or function) - add
type: "asset"
for asset module type in rules - add
asset
examples
- add
- ๐ฑ separate between
files
andauxiliaryFiles
for chunk assets- normal files: JS, CSS (tags need to be added for entrypoints)
- auxiliary files: WASM, assets, any loader emitted file (no tags need to be added for entrypoints)
- auxiliary files are displayed in brackets in Stats
- ๐ Some core implementations and plugins do some time and statistics logging now (try
stats.loggingDebug: /webpack/
) - โ add
Compilation.hooks.stillValidModule
similar tofailedModule
andsucceedModule
when a module has been taken from cache
๐ Bugfixes
- undefined values are now ignored in rules
- ๐ fix schema of
resolve.alias
when array (properties are now required) - pass
idleTimeout
to persistent caching implementation - ๐ fix module done counting for cached modules
- โ add back
stats.cachedAssets
- ๐ fix stats option processing for objects with prototype chain
- track call context in concatenated modules correctly
๐ Performance
- โฌ๏ธ upgrade enhanced-resolve to fix some function deopts
- ๐ fix some function deopts in webpack
- ๐ avoid using
toLocaleDateString
andtoLocaleTimeString
for performance (intl need to be initialized) - ChunkGroup parents and children are no longer sorted
- ๐ฑ Stats assigns chunks with assets only once, instead of for every asset
- ๐จ StatsFactory and StatsPrinter cache used hooks for items
- Hashes for small data < 1kb is cached
- ๐ Put deprecation stuff for Sets in prototype instead of on every instance
- Cache Map lookups and create less objects during module dependency processing
- 0๏ธโฃ default
cache.idleTimeout
to 60s instead of 10s
Examples
- โ add typescript example
Contributing
- โ add a typing coverage report, to see type coverage of the repo
- โฌ๏ธ upgraded many dependencies
- โ add
-
v5.0.0-alpha.18 Changes
July 08, 2019๐ Features
- ๐ update enhanced-resolve to new major: see https://github.com/webpack/enhanced-resolve/releases/tag/v5.0.0-beta.0
- Yarn PnP
- more dependencies tracked
- alias with multiple fallbacks
resolve.alias: { something: ["a", "b"] }
- Performance
- NodeJsInputFileSystem removed (pass real fs or memfs)
๐ Bugfixes
- ๐ fixes
resolve.alias: { something: false }
to ignore module
- ๐ update enhanced-resolve to new major: see https://github.com/webpack/enhanced-resolve/releases/tag/v5.0.0-beta.0
-
v5.0.0-alpha.17 Changes
July 01, 2019๐ (based on 4.35.2)
๐ Features
- ๐ allow
output.filename
andsplitChunks...filename
to be a function - โก๏ธ update watchpack dependency (
ignored
is added again, avoidfs.watchFile
for own polling)
๐ Bugfixes
- ๐ fix a case where modules are not added to chunks when using the same
name
multiple times insplitChunks
- ๐ fix an internal use of a deprecated API
Full Changelog
Feedback
- ๐ allow
-
v4.44.2 Changes
September 17, 2020๐ Bugfixes
- ๐ make sure to generate correct chunk connection for blocks that are only connected in some runtimes
- fixes a bug where filename contains undefined hash at runtime
- ๐ make sure to generate correct chunk connection for blocks that are only connected in some runtimes
-
v4.44.1 Changes
July 30, 2020๐ Bugfixes
- ๐ fix bug in sideEffects optimization when using
export * from "non-esm"
and a default export. - โ add missing optional peerDependencies for webpack-cli and webpack-command to support Yarn 2
- ๐ fix bug in sideEffects optimization when using
-
v4.44.0 Changes
July 24, 2020๐ Features
- ๐ Improve
sideEffects
flag behavior when dynamic modules are part of the tree- Fixes a bug which causes empty modules (or type-only modules) to "break" Tree Shaking
- โ add
splitChunks.enforceSizeThreshold
to allow enfore splitting larger chunks unrelated from other limiations- Not set by default to avoid breaking change
- It will be set by default to 50k in webpack 5
- It's recommended to set it in webpack 4 too
- โ add support for
resolve.roots
and defaultresolve.roots: [context]
- This allows to resolve server-relative urls (e.g.
/src/abc
) to the project root (or other locations when configured) - This allows to use loaders that rely on that behavior
- This allows to resolve server-relative urls (e.g.
๐ Bugfixes
- ๐ fix bug where splitChunks produced non-optimal results when
minSize
is set to0
- This lead to
NaN
s in some places which breaks ordering
- This lead to
- ๐ Fix bug which lead to HMR not working for splitChunks in entrypoints
- ๐ force update watchpack and chokidar for chokidar bugfix which causes files to stop being watched
- ๐ Improve