chore(deps): update dependency webpack to v5 #22
+384
−829
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.6.0
->5.65.0
Release Notes
webpack/webpack
v5.65.0
Compare Source
Features
undefined
nowBugfixes
singleton
flag withoutrequiredVersion
in Module Federationwatchpack
for context time info bugfixPerformance
Developer Experience
output.globalObject
contains a non-trival expressionscript
type external with invalid syntaxResolver
,StatsOptions
andResolvePluginInstance
Preparations for the future
hashDigestLength
will default to 16 in webpack 6 (experiments.futureDefaults
)v5.64.4
Compare Source
Bugfixes
Performance
Developer Experience
v5.64.3
Compare Source
Performance
Infinity
is used in configurationv5.64.2
Compare Source
Bugfixes
v5.64.1
Compare Source
Bugfixes
require(...).property
inrequire.ensure
output.clean: true
unsafeCache
withinmanagedPaths
(node_modules)v5.64.0
Compare Source
Features
asyncChunks: boolean
option to disable creation of async chunksBugfixes
experiments.backCompat: false
Performance
v5.63.0
Compare Source
Features
chunkLoading: false
to disable on-demand loadingBugfixes
import 'single-quote'
in esm build dependenciesv5.62.2
Compare Source
Bugfixes
__system_context__
injection when using thelibrary
option on entrypointexportsPresence: "error"
by default infutureDefaults
exportPresence
->exportsPresence
typoexperiments.cacheUnaffected
v5.62.1
Compare Source
Bugfix
;
v5.62.0
Compare Source
Features
parser.javascript.reexportExportsPresence: false
allows to disable warnings for non-existing exports during the migration fromexport ... from "..."
toexport type ... from "..."
for type reexports in TypeScriptexperiments.backCompat: false
to disable some expensive deprecations for better performanceBugfixes
['catch']
instead of.catch
for better ES3 supportnew (require("...")).Something()
{ require }
object literalssplitChunks.chunks
option is now correctly used forsplitChunks.fallbackCacheGroup.maxSize
toolisten
option, allow to omitport
Developer Experience
/// <reference types="webpack/module" />
to use the typings in typescript modules"types": [..., "webpack/module"]
in tsconfigv5.61.0
Compare Source
Bugfixes
path
submodules in the node.js default externalsPerformance
Contribution
v5.60.0
Compare Source
Features
experiments.lazyCompilation
. e. g. port, https stuffBugfixes
output.hashFunction
used to persistent caching toobuildDependencies
Set correctly when loaders are added inbeforeLoaders
hookv5.59.1
Compare Source
Bugfixes
experiments.buildHttp
v5.59.0
Compare Source
Features
/*#__PURE__*/
forObject()
in generated codemanaged/immutablePaths
experiments.buildHttp
splitChunks.minSizeReduction
optionBugfixes
waitFor
when modules are unsafe cachedv5.58.2
Compare Source
Bugfixes
Performance
v5.58.1
Compare Source
Bugfixes
.webpack[]
suffix to not execute rulesv5.58.0
Compare Source
Features
diagnostics_channel
to node builtinsPerformance
v5.57.1
Compare Source
Bugfix
v5.57.0
Compare Source
Performance
Bugfixes
v5.56.1
Compare Source
Bugfix
v5.56.0
Compare Source
Performance
v5.55.1
Compare Source
Bugfixes
experiments.cacheUnaffected
v5.55.0
Compare Source
Performance
experiments.cacheUnaffected
module.unsafeCache
v5.54.0
Compare Source
Features
&&
||
and??
output.hashFunction
eval
is used in a moduleBugfixes
Performance
output.hashFunction: "xxhash64"
for a super fast wasm based hash functionexperiments.cacheUnaffected
which caches computations for modules that are unchanged and reference only unchanged modulesv5.53.0
Compare Source
Features
node.__dirname/__filename: "warn-mock"
which warns on usage (will be enabled in webpack 6 by default)Bugfixes
stream/web
to Node.js externalsExperiments
experiments.futureDefaults
to enable defaults for webpack 6v5.52.1
Compare Source
Performance
v5.52.0
Compare Source
Feature
experiments.executeModule
is enabled by default and the option is removedthis.importModule
Bugfixes
__WEBPACK_EXTERNAL_MODULE_null__
, which leads to merged externals.webpack[...]
extension is not part of matching and module namev5.51.2
Compare Source
Bugfixes
[contenthash]
is undefined when usingnew Worker
v5.51.1
Compare Source
Bugfixes
library: "module"
propages top-level-await correctlyv5.51.0
Compare Source
Bugfixes
yarn link
ing of dependencies.Compilation.addModuleChain
andCompilation.addModuleTree
v5.50.0
Compare Source
Features
#! ...
) are now handled by webpackPerformance
v5.49.0
Compare Source
Features
experiments.buildHttp
to buildhttp(s)://
imports instead of keeping them externalwebpack.lock
file with integrity andwebpack.lock.data
with cached content that should be committed(might be disabled with
experiments.buildHttp.upgrade: false
)(exception:
Cache-Control: no-cache
).webpack.lock.data
persisting can be disabled withexperiments.buildHttp.cacheLocation: false
.That will will introduce a availability risk.
(webpack cache will be used to cache network responses)
Bugfixes
splitChunks.maxSize
introduces in the last releasebail
is setPerformance
v5.48.0
Compare Source
Features
Bugfixes
v5.47.1
Compare Source
Bugfixes
v5.47.0
Compare Source
Performance
Bugfixes
"use strict"
s in module modev5.46.0
Compare Source
Features
stats.reasonsSpace
andstats.groupReasonsByOrigin
Bugfixes
Performance
v5.45.1
Compare Source
Bugfixes
assert
in other placesimport(/* webpackPrefetch: true */ ...)
no longer breaks library outputv5.45.0
Compare Source
Features
Bugfixes
.cjs
output filesPerformance
Contributing
v5.44.0
Compare Source
Features
output.module
+optimization.runtimeChunk
Bugfixes
v5.43.0
Compare Source
Features
runtime: false
in entry description to disable runtime chunkruntime
option in ModuleFederationPlugin and ContainerPluginBugfixes
"module"
externals when concatenatedPerformance
v5.42.1
Compare Source
Bugfixes
jsonData
ordataUrl
of undefinedv5.42.0
Compare Source
Features
cache.compression
Bugfixes
node-commonjs
to schema forexternalsType
system
externalsPerformance
v5.41.1
Compare Source
Bugfixes
Performance
v5.41.0
Compare Source
Features
cache.idleTimeoutAfterLargeChanges
to control thatBugfixes
Experiments
experiments.outputModule: true
)output.library.type: "module"
: very basic support, no live bindings, unnecessary runtime codeoutput.chunkLoading: "import"
output.chunkFormat: "module"
externalsType: "module"
generates nowimport * as X from "..."
(in a module) orimport("...")
(in a script)import { createRequire } from "module"
in a modulenew Worker
etc. sets `type: "module"v5.40.0
Compare Source
Features
node:
prefixed requests as node.js externalsinstanceof Promise
in favor ofp && typeof p.then === "function"
to allow mixing different Promise implementionsBugfixes
Performance
Developer Experience
Buffer
inthis.emitFile
typings (loader context)reset
cli argument descriptionv5.39.1
Compare Source
Bugfixes
v5.39.0
Compare Source
Features
import()
context (import with expression)Bugfixes
cache.allowCollectingMemory
Performance
Error.captureStackTrace
from webpack errorsv5.38.1
Compare Source
Performance
v5.38.0
Compare Source
Features
new URL("data:...", import.meta.url)
is now supportedmodule.rules[].scheme
as condition to match the request scheme (likedata
,http
, etc.)Bugfixes
Performance
v5.37.1
Compare Source
Bugfixes
Watching.invalidate
,dependencies
andparallelism
of the config array is now respected correctlystats
after the next compilation has startedWatching.suspend
RuleCondition.not
and allow passing a condition directly instead of only an arrayDeveloper Experience
Contributing
v5.37.0
Compare Source
Features
output.trustedTypes
Bugfixes
dependOn
null
in fs callbacksDeveloper Experiences
v5.36.2
Compare Source
Bugfixes
output.clean
is against this assumptionv5.36.1
Compare Source
Performance
cache.profile
(type: "filesystem"
only) flag for more info about (de)serialization timingsv5.36.0
Compare Source
Features
Performance
v5.35.1
Compare Source
Bugfixes
__webpack_exports__ is not defined
error with some library typesperformance
v5.35.0
Compare Source
Bugfixes
#
in pathPerformance
v5.34.0
Compare Source
Features
resolve.extensions
and handle them in this orderpnpapi
as builtin external when usingtarget: "node"
Bugfixes
target: "node"
Performance
Developer Experience
store: 'idle'
from schema descriptionv5.33.2
Compare Source
Bugfix
v5.33.1
Compare Source
Bugfix
this.importModule
v5.33.0
Compare Source
Features
publicPath
per entrypointentry.xxx.publicPath
optionBugfix
executeModule
Performance
export *
and reexportsv5.32.0
Compare Source
Features
.webpack[type]
(e. g..webpack[javascript/auto]
) to specify the default module type when no other module type is specified!=!
inline syntaxBugfixes
Experiments
experiments.executeModule
to allow build-time execution of modules of the module graphthis.importModule(request, options, [callback]): Promise
to the loader contextcompilation.executeModule(request, options, callback)
for pluginsv5.31.2
Compare Source
Bugfixes
v5.31.1
Compare Source
Bugfixes
Memory
Performance
v5.31.0
Compare Source
Features
infrastructureLogging.colors
: Enables/Disables colorful output.infrastructureLogging.appendOnly
: Only appends lines to the output. Avoids updating existing output e. g. for status messages.infrastructureLogging.stream
: Stream used for logging output. Defaults to process.stderr.infrastructureLogging.console
: Custom console used for logging.Bugfixes
exports
field is usedv5.30.0
Compare Source
Features
cache.maxGenerations
whencache.type: "memory"
cache.type: "filesystem"
andmode: "development"
cache.maxMemoryGenerations
whencache.type: "filesystem"
cache.maxAge
cache.maxMemoryGenerations: 0
Bugfixes
GC = Garbage Collection
v5.29.0
Compare Source
Bugfixes
splitChunks.maxSize
which cause too large chunks to be createdstats.groupModulesByType
to the schemaDeveloper Experience
Module/Const/NullDependency
on the APIv5.28.0
Compare Source
Features
module.generator.asset.publicPath
to configure a different publicPath for assetsBugfixes
Performance
v5.27.2
Compare Source
Bugfixes
beforeLoaders
hookexperiments.lazyCompilation
is used (regression)import()
new URL(new URL
generated by worker handingv5.27.1
Compare Source
Bugfix
v5.27.0
Compare Source
Features
utils: { contextify(context, absolutePath), absolutify(context, request) }
to loader contextBugfixes
imports
field handlingv5.26.3
Compare Source
Bugfix
v5.26.2
Compare Source
Bugfixes
v5.26.1
Compare Source
Bugfixes
Set.addAll
polyfill../
when generation the undo path for non-web targetsv5.26.0
Compare Source
Features
DefinePlugin.runtimeValue
(file/context/missing/buildDependencies, version)Bugfixes
v5.25.1
Compare Source
Bugfixes
type: "module"
for Workers when generating classic scriptsv5.25.0
Compare Source
Features
__webpack_runtime_id__
to access the current runtime idoutput.strictModuleErrorHandling
to opt into stricter evaluation error handling semantics according to ESM specnew URL()
this will result in an url to a empty file ("data:,"
)module.generator.asset.emit
option to disable creating assets from asset modules (e. g. for SSR)Bugfixes
splitChunks.maxSize
where negative indicies are accessedsplitChunks.maxSize
in some cases when multiple size types are involvedDeprecations
output.strictModuleExceptionHandling
(this is the CommonJS way of handling errors, and the name is weird)v5.24.4
Compare Source
Bugfixes
externals
"..."
in array configuration options when it's not at the startv5.24.3
Compare Source
Bugfixes
v5.24.2
Compare Source
Bugfixes
modifiedFiles
andremovedFiles
were undefinedv5.24.1
Compare Source
Performance
Developer Experience
v5.24.0
Compare Source
Bugfixes
export *
that point to the same exportexperiments.lazyCompilation: true
. It now has an effect.Developer Experience
Watching
typeContribution
Performance
v5.23.0
Compare Source
Features
parserOptions.url: "relative"
optionnew URL
(e. g. for SSG/SSR)Bugfixes
Developer Experience
v5.22.0
Compare Source
Features
'...'
string instead of"..."
(only affects output side when not minimized)dependencies
configuration option now works for watch builds toodependencies
has changeddependencies
have finishedparallelism
config option on the array of configurations to limit the compilers that are running in parallelDeveloper Experience
Did you mean ...
) to resolve errors whenenforceExtension
./
depend(s)On
it, webpack no longer crashes with a weird errorBugfixes
"sideEffects": false
this.loadModule
(loader) and the loaded module has errorsoutput.iife: false
define
for local modules and arrow functions are supporteddefine
function, which missed declarations beforeexport { x }
is before pure declarationconst x = /*#__PURE__*/ f()
Contribution
Experiments
output.library: { type: "module" }
(experiments.outputModule: true
)export { ... }
now, but that can't handle live-bindings yetv5.21.2
Compare Source
Bugfixes
constructor
property now caches correctlylength
property now works correctlyv5.21.1
Compare Source
Bugfixes
v5.21.0
Compare Source
Features
__webpack_base_uri__
to change base URI at runtimestats.errorDetails: "auto"
to show error details automatically when there are only 1 or 2 errorsBugfixes
Developer Experience
stats.errorDetails
to"auto"
when usingtoString
Did you mean ...?
and similar hints are shown in greenv5.20.2
Compare Source
Bugfixes
undefined
filesv5.20.1
Compare Source
Bugfix
Caching failed for pack: RangeError [ERR_OUT_OF_RANGE]
warning when serializing the cachev5.20.0
Compare Source
Features
experiments.lazyCompilation.imports
to disable lazy compilation ofimport()
sexperiments.lazyCompilation.test
to allow custom selection of modules that should be lazy compiledprofile: true
resp.--profile
webpack will now print a summary of expensive modules or loadersBugfixes
experiments.lazyCompilation.client
now works as intended__webpack_require__ is not defined
Developer Experience
EntryObject
type in typingspkg-dir
dependencyv5.19.0
Compare Source
Features
exposes
forModuleFederationPlugin
Bugfixes
options
forProgressPlugin
optional in typingsPerformance
v5.18.0
Compare Source
Internals
React.createElement
)v5.17.0
Compare Source
Features
experiments.lazyCompilation: true
for web and node targetsimport()
s only when they are accessedwebpack-dev-server
/webpack serve
opening an entrypoint for the first time, sometimes need a manual refresh.module
tomodule.parser.javascript
and also allow to set them viamodule.rules
module.parser.javascript.commonjsMagicComments
to enable/* webpackIgnore: true */
forrequire()
callsBugfixes
webpack.debug.ProfilingPlugin
on Mac when the computer was suspended before.v5.16.0
Compare Source
Features
__webpack_is_included__("./some-module")
which returns true when the module is bundled and false when notlibrary.type: "assign-properties"
which merges all exports into a global variableoptimization.innerGraph
fornew URL()
Bugfixes
experiments.outputModule: true
withoptimization.runtimeChunk
splitChunk.reuseExistingChunk
doesn't work for entrypointsDeveloper Experience
v5.15.0
Compare Source
Features
getResolve
method to data object when using functionexternals
externals
function may return a promise nowBugfixes
define("local-module", expr)
generating invalid syntaxchunkModulesSpace
to schemarebuildModule
apiPerformance
v5.14.0
Compare Source
Features
Bugfixes
watcher.getContextTimeInfoEntries()
memfs
and realfs
AutomaticPrefetchPlugin
Contribution
v5.13.0
Compare Source
Features
resolve.preferAbsolute
flag for compatibility with webpack 4exports
andimports
fieldnameForCondition()
as fallback for module namesv5.12.3
Compare Source
Bugfixes
@webassembly/*
andterser-webpack-plugin
dependenciesv5.12.2
Compare Source
Bugfixes
v5.12.1
Compare Source
Bugfixes
var
libraryv5.12.0
Compare Source
Features
experiments.layers
entry.xxx.layer: "name-of-layer"
allows to set the layer for an entrypointmodule.rules[].issuerLayer: RuleCondition
allows to filter/match by layer of issuermodule.rules[].layer: "name-of-layer"
allows to set the layer of an modulesplitChunks.cacheGroups.xxx.layer
allows to select modules by layerexternals.byLayer["name-of-layer"]
allows to specify externals by layerexternals.byLayer: (layer) => ...
allows to specify externals by layerexternals
function has an additional argument propertycontextInfo
which contains info about the issuer (e. g. the layer)module.parser
andmodule.generator
options to allow to specify parser/generator options globally per module typechunkId
variable available in script tag hook (like it was with webpack 4)Bugfixes
stats.nestedModulesSpace
to schema to allow to specify this optionnew.target
with constantssplitChunk
minSize
is not handled correctlysplitChunk
cacheGroups
is not handled correctlyDeveloper experience
Contributing
v5.11.1
Compare Source
Bugfixes
object
types in typingsv5.11.0
Compare Source
Features
validateSchema
functionBugfixes
undefined
values for rule conditions like empty stringsv5.10.3
Compare Source
Bugfixes
v5.10.2
Compare Source
Bugfixes
target: "node"
v5.10.1
Compare Source
Bugfixes
processAssets
withadditionalAssets
\
in module info header commentv5.10.0
Compare Source
Bugfixes
"sideEffects": false
) when reexports and concatenated modules are combinedContributing
Performance
output.pathinfo: true
(default in development) adds less verbose information (and is faster)output.pathinfo: "verbose"
adds more verbose informationoutput.pathinfo: true
is cachedConfiguration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.