Open
Conversation
7a243bd to
66268fc
Compare
66268fc to
c4a0c5c
Compare
85ec567 to
4613cf3
Compare
269c647 to
38fd1f8
Compare
38fd1f8 to
f8f0b9c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.10.0->5.21.2Release Notes
webpack/webpack
v5.21.2Compare Source
Bugfixes
constructorproperty now caches correctlylengthproperty now works correctlyv5.21.1Compare Source
Bugfixes
v5.21.0Compare 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.errorDetailsto"auto"when usingtoStringDid you mean ...?and similar hints are shown in greenv5.20.2Compare Source
Bugfixes
undefinedfilesv5.20.1Compare Source
Bugfix
Caching failed for pack: RangeError [ERR_OUT_OF_RANGE]warning when serializing the cachev5.20.0Compare Source
Features
experiments.lazyCompilation.importsto disable lazy compilation ofimport()sexperiments.lazyCompilation.testto allow custom selection of modules that should be lazy compiledprofile: trueresp.--profilewebpack will now print a summary of expensive modules or loadersBugfixes
experiments.lazyCompilation.clientnow works as intended__webpack_require__ is not definedDeveloper Experience
EntryObjecttype in typingspkg-dirdependencyv5.19.0Compare Source
Features
exposesforModuleFederationPluginBugfixes
optionsforProgressPluginoptional in typingsPerformance
v5.18.0Compare Source
Internals
React.createElement)v5.17.0Compare Source
Features
experiments.lazyCompilation: truefor web and node targetsimport()s only when they are accessedwebpack-dev-server/webpack serveopening an entrypoint for the first time, sometimes need a manual refresh.moduletomodule.parser.javascriptand also allow to set them viamodule.rulesmodule.parser.javascript.commonjsMagicCommentsto enable/* webpackIgnore: true */forrequire()callsBugfixes
webpack.debug.ProfilingPluginon Mac when the computer was suspended before.v5.16.0Compare 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.innerGraphfornew URL()Bugfixes
experiments.outputModule: truewithoptimization.runtimeChunksplitChunk.reuseExistingChunkdoesn't work for entrypointsDeveloper Experience
v5.15.0Compare Source
Features
getResolvemethod to data object when using functionexternalsexternalsfunction may return a promise nowBugfixes
define("local-module", expr)generating invalid syntaxchunkModulesSpaceto schemarebuildModuleapiPerformance
v5.14.0Compare Source
Features
Bugfixes
watcher.getContextTimeInfoEntries()memfsand realfsAutomaticPrefetchPluginContribution
v5.13.0Compare Source
Features
resolve.preferAbsoluteflag for compatibility with webpack 4exportsandimportsfieldnameForCondition()as fallback for module namesv5.12.3Compare Source
Bugfixes
@webassembly/*andterser-webpack-plugindependenciesv5.12.2Compare Source
Bugfixes
v5.12.1Compare Source
Bugfixes
varlibraryv5.12.0Compare Source
Features
experiments.layersentry.xxx.layer: "name-of-layer"allows to set the layer for an entrypointmodule.rules[].issuerLayer: RuleConditionallows to filter/match by layer of issuermodule.rules[].layer: "name-of-layer"allows to set the layer of an modulesplitChunks.cacheGroups.xxx.layerallows to select modules by layerexternals.byLayer["name-of-layer"]allows to specify externals by layerexternals.byLayer: (layer) => ...allows to specify externals by layerexternalsfunction has an additional argument propertycontextInfowhich contains info about the issuer (e. g. the layer)module.parserandmodule.generatoroptions to allow to specify parser/generator options globally per module typechunkIdvariable available in script tag hook (like it was with webpack 4)Bugfixes
stats.nestedModulesSpaceto schema to allow to specify this optionnew.targetwith constantssplitChunkminSizeis not handled correctlysplitChunkcacheGroupsis not handled correctlyDeveloper experience
Contributing
v5.11.1Compare Source
Bugfixes
objecttypes in typingsv5.11.0Compare Source
Features
validateSchemafunctionBugfixes
undefinedvalues for rule conditions like empty stringsv5.10.3Compare Source
Bugfixes
v5.10.2Compare Source
Bugfixes
target: "node"v5.10.1Compare Source
Bugfixes
processAssetswithadditionalAssets\in module info header commentv5.10.0Compare 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: trueis cachedv5.9.0Compare Source
Features
Bugfixes
... has no hash info for runtime ...v5.8.0Compare Source
Features
PROCESS_ASSETS_STAGE_OPTIMIZE_INLINEBugfixes
v5.7.0Compare Source
Features
pnpmBugfixes
if(...)etc.v5.6.0Compare Source
Bugfixes
v5.5.1Compare Source
Bugfixes
v5.5.0Compare Source
Bugfixes
[id]and etc. in SourceMap sources__esModuleflag consistent exposedv5.4.0Compare Source
Bugfixes
v5.3.2Compare Source
Bugfixes
v5.3.1Compare Source
Bugfixes
__webpack_require__(null)problemstring[]types instead of[string, ...string[]]for arrays that must not be emptyPerformance
v5.3.0Compare Source
Features and Bugfixes
Cannot read property 'call' of undefinederror in webpack runtime, because modules are used that are not in the graph in one runtimeoptimization.sideEffects: "flag"as option for thisv5.2.1Compare Source
Bugfixes
watchOptions.followSymlinksoption to schemav5.2.0Compare Source
Features
sourceFilenameandjavascriptModuleto asset info for pluginsBugfixes
thisexternals with module concatenationv5.1.3Compare Source
Bugfixes
Self-reference dependency has unused export nameerrorv5.1.2Compare Source
Bugfixes
v5.1.1Compare Source
Bugfixes
Self-reference dependency has unused export nameerrorCompilation.deleteAssetupdates chunk to file mappingsv5.1.0Compare Source
Features
webpackproperty fromCompilercleverMerge,EntryOptionPlugin,DynamicEntryPluginBugfixes
require("..").xxxin try-catch produces a warning instead of an error nowv5.0.0Compare Source
Announcement and changelog
v4.46.0Compare Source
Bugfixes
resolve.rootsto be backward-compatiblev4.45.0Compare Source
Features
Bugfixes
splitChunkminSizeis not handled correctlysplitChunkcacheGroupsis not handled correctlyv4.44.2Compare Source
Bugfixes
v4.44.1Compare Source
Bugfixes
export * from "non-esm"and a default export.v4.44.0Compare Source
Features
sideEffectsflag behavior when dynamic modules are part of the treesplitChunks.enforceSizeThresholdto allow enfore splitting larger chunks unrelated from other limiationsresolve.rootsand defaultresolve.roots: [context]/src/abc) to the project root (or other locations when configured)Bugfixes
minSizeis set to0NaNs in some places which breaks orderingv4.43.0Compare Source
Features
module.hot.invalidate()to HMR APIDependencies
v4.42.1Compare Source
Bugfixes
v4.42.0Compare Source
Bugfixes
"use asm"scopeoutput.hotUpdateChunkFilenameas this doesn't workv4.41.6Compare Source
Bugfixes
export *in a circular matterv4.41.5Compare Source
Bugfixes
webpack://prefix in SourceMaps correctlyprovidedExportswithexport *which caused changing module hashes and unnecessary HMR invalidationv4.41.4Compare Source
Bugfixes
__webpack_require__.eis not a function when using module concatenationPerformance
v4.41.3Compare Source
Security
Funding
v4.41.2Compare Source
Bugfixes
v4.41.1Compare Source
Bugfixes
v4.41.0Compare Source
Developer Experience
Performance
v4.40.3Compare Source
Bugfixes
Performance
v4.40.2Compare Source
Bugfixes
v4.40.1Compare Source
Bugfixes
v4.40.0Compare Source
Features
compilation.emitAsset/updateAsset(instead of accessing the Objectcompilation.assets)compilation.getAssets()andcompilation.getAsset(name)immutable: when set an asset can be cache infinitelydevelopment: when set an asset is some kind of development tool (i. e. a SourceMap)hotModuleReplacement: when set an asset is generated for an hot updateinfoobject in assetsv4.39.3Compare Source
Bugfixes
v4.39.2Compare Source
Bugfixes
v4.39.1Compare Source
Bugfixes
...100%is displayed instead of100%v4.39.0Compare Source
Features
statusmethod which allows to write temporary status messages[\id\]Compiler.hooks.assetEmittedhave been added to get byte content of emitted assetsBugfixes
Compiler.hooks.infrastructurelogtoCompiler.hooks.infrastructureLogconstructor)library.namenow supports placeholders inlibraryTarget: "system"Dependencies
v4.38.0Compare Source
Performance
optimization.removeAvailableModulesunneeded, expect in scenarios where chunks are merged during optimization.optimization.removeAvailableModulesis now disabled in development mode by defaultoptimization.removeAvailableModuleswill be disabled for all modes in next major release, feel free to disable it in production too if you want extra performance.v4.37.0Compare Source
Features
v4.36.1Compare Source
Bugfixes
v4.36.0Compare Source
Features
appendoption now supports the default placeholders in addition to[url]"..."when overriding options.v4.35.3Compare Source
Bugfixes
import()Performance
v4.35.2Compare Source
Bugfixes
realResourcemust match absolute pathsv4.35.1Compare Source
Bugfixes
realResourcecondition in rule to schemav4.35.0Compare Source
Features
Watching.suspendandWatching.resumesplitChunks.automaticNameMaxLengthandsplitChunks.cacheGroups[x].automaticNameMaxLengthBugfixes
publicPathwhen loading chunksv4.34.0Compare Source
Features
Bugfixes
v4.33.0Compare Source
Features
target: "electron-preload"for electron 5target: "web"in electron 5Bugfixes
v4.32.2Compare Source
Bugfixes
v4.32.1Compare Source
Bugfixes
node: false.v4.32.0Compare Source
Features
this.modeto the loader API, to allow loaders to choose defaults bymodesimilar to webpacks optionsimport()now includes the stack from where theimport()was calledBugfixes
const { a, ...rest } = obj, whererestconflicts with an imported binding etc.node: falsenow correctly disables__dirnameand__filenametoo__dirnameand__filenamenow no longer evaluates to something whennode: falseornode.__file/dirname: falseis setif(__dirname !== "")is no longer replaced withif(true)in such scenarios__webpack_public_path__for prefetching tooContribute
v4.31.0Compare Source
Features
errors-warningsstats presetBugfixes
v4.30.0Compare Source
Features
amd: falseto disable AMD supportCompilation.hooks.finishModulesnow also allows async pluginsoutput.libraryTarget: "system"to compile for SystemJs environmentBugfixes
nullid when concatenating an entry module in a different chunkPerformance
Contributing
v4.29.6Compare Source
Bugfixes
__webpack_require__andrequire.onErroris no longer evaluated toundefinedand evaluation is done at runtime instead.thisvalue inmodule.hot.acceptwith imported dependency is correctly preserved.Contributing
npmmodulesv4.29.5Compare Source
Bugfixes
@webassemblyjsto remove git dependencyv4.29.4Compare Source
Bugfixes
@webassemblyjsfor bugfixesv4.29.3Compare Source
Bugfixes
import()context uses__webpack_require__.e, but it is not in the runtimev4.29.2Compare Source
Internal changes
v4.29.1Compare Source
Bugfixes
__esModuleflag when modules are concatenated, but without usage informationv4.29.0Compare Source
Important Note for npm users
This release updates some dependencies, which may trigger a npm bug. See here for the webpack issue. The npm bug has been fixed, but a new npm version has not been released yet.
For workarounds see this comment.
Eventually the fix will be to upgrade npm once the bugfix is released.
Features
output.futureEmitAssetswhich gives the emitting logic of webpack 5v4.28.4Compare Source
Bugfixes
ProfilingPlugincreates output path if not existingoptimization.minimizerrun()failsv4.28.3Compare Source
Bugfixes
v4.28.2Compare Source
Bugfixes
v4.28.1Compare Source
Bugfixes
v4.28.0Compare Source
Features
checkResourcehas an additionalcontextargumentBugfixes
.mjsfiles as it's crashingv4.27.1Compare Source
Bugfixes
splitChunksenforce.v4.27.0Compare Source
Features
getResolvemethod to create their own resolver function with custom optionsBugfixes
export * fromv4.26.1Compare Source
Bugfixes
v4.26.0Compare Source
Features
Note: While they are officially backward-compatible, it can still happen that a new bugs occurs with terser, which break your production builds. Make sure to validate your production builds after upgrading to this version. (Note that it's always a good idea to test your output assets before deploying.)
If you want to report bugs to terser (https://github.com/terser-js/terser), please provide a minimal repro case with minimized and non-minimized code. You can configure webpack to generate non-minimized code in production mode by setting
optimization.minimize: false. When reporting a bug to terser, best report a repro case which doesn't require running webpack and is reproducible with only the terser command line.See
optimization.minimizersconfiguration option to switch back to uglify-es or provide additional minimize options for terser.v4.25.1Compare Source
Bugfixes
v4.25.0Compare Source
Features
formatoption toDllPluginto allow generating formated manifest jsonProgressPluginto add and remove informationBugfixes
.mjsv4.24.0Compare Source
Features
DefinePlugin.runtimeValue(() => {...}, true)is always evaluatedmoduleargument toDefinePlugin.runtimeValueBugfixes
v4.23.1Compare Source
Bugfixes
return'development'===process.env.NODE_ENV&&'foo'v4.23.0Compare Source
Features
watchModeflag to Compiler to be able to detect watch mode in pluginsremovedFilesproperty to Compiler to detect removed filesBugfixes
@webassemblyjs/*for bugfixInternal changes
v4.22.0Compare Source
Features
&&and||expressionsBugfixes
Performance
v4.21.0Compare Source
Features
output.libraryTarget: "amd-require"which generates a AMDrequire([], ...)wrapper instead of adefine([], ...)wrapperoutput.library, which exposes the library to a subpropertyBugfixes
__webpack_require__.eis used at runtime but is not defined in the bundleglobaltypePerformance
v4.20.2Compare Source
Bugfixes
export defaultin concatenated modulesv4.20.1Compare Source
Bugfixes
libraryTarget: "amd"without library namev4.20.0Compare Source
Bugfixes
Internal changes
v4.19.1Compare Source
Bugfixes
import()withtarget: "electron-main"uses correct path separator on windows(This fixes a problem with filemappings in vscode)
devtool: "source-map"and variants generate SourceMaps when output file is.mjsbrowserfield as object is used when usingtarget: "electron-renderer"export defaultare preservedexternalsvalue, now works correctly as documentedv4.19.0Compare Source
Bugfixes
v4.18.1Compare Source
Bugfixes
v4.18.0Compare Source
Features
v4.17.3Compare Source
Bugfixes
v4.17.2Compare Source
Bugfixes
v4.17.1Compare Source
Bugfixes
export *in a concatenated modulev4.17.0Compare Source
Features
Bugfixes
[contenthash]for js assetsv4.16.5Compare Source
Bugfixes
import()webpack-hot-clientand runtime chunksv4.16.4Compare Source
Bugfixes
chunkAssethook in HotModuleReplacementPluginv4.16.3Compare Source
Bugfixes
require.ensures.v4.16.2Compare Source
Bugfixes
module.requirelikerequiremodule.main.requireandmodule.parent.requirev4.16.1Compare Source
Bugfixes
output.hashDigesthas a more relaxed schemaInternal changes
v4.16.0Compare Source
Features
electron-renderertargetoptimization.moduleIdsandoptimization.chunkIdsoptions to replace other optionsBugfixes
output.library.rootand using a devtoolerr.stackis not setoptimization.splitChunks.maxSizeDependency.locis a string instead of an objectDeprecations
Dependency.comparein favor ofcompareLocationsoptimization.namedModulesis now deprecatedoptimization.hashedModuleIdsis now deprecatedoptimization.namedChunksis now deprecatedoptimization.occurrenceOrderis now deprecatedv4.15.1Compare Source
Bugfixes
v4.15.0Compare Source
Features:
maxSizeoption forsplitChunks(experimental)v4.14.0Compare Source
Features
Compilation.dependencyReferenceto modify the dependency referencesBugfixes
v4.13.0Compare Source
Features
DefinePluginnow supportsruntimeValues to pass computed values with dependencies that can change over timeoptimization.hashedModuleIdsresolve.aliasBugfixes
binfields are usedv4.12.2Compare Source
Bugfixes
v4.12.1Compare Source
Bugfixes
splitChunksimportwithsideEffects: falseDependencyReference[chunkhash]intarget: "webworker"ProfilingPluginInternal changes
lint-stagedv4.12.0Compare Source
Features
Bugfixes
import()when importing a non-ESMv4.11.1Compare Source
Features
optimization.mangleWasmImportsoption to disable mangling of wasm importsBugfixes
v4.11.0[Compare Source](https://togithu
Renovate configuration
📅 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.