wopian / hibari

🦊 Vue app for Kitsu
https://hibari.moe
MIT License
26 stars 9 forks source link

build: update devdependency webpack to ~5.36.0 #657

Closed renovate[bot] closed 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
webpack ~3.12.0 -> ~5.36.0 age adoption passing confidence

Release Notes

webpack/webpack ### [`v5.36.2`](https://togithub.com/webpack/webpack/releases/v5.36.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.36.1...v5.36.2) ### Bugfixes - correctly handle errors thrown during parser/generator creation - e. g. validation errors for asset module options - use a better automatic runtime name for workers - not too long to cause filename problems - no longer assume assets do not get removed when the compiler is running - Using `output.clean` is against this assumption - It fixes a bug where assets are missing, when removed and readded to the compilation - fix a problem when chained dependOn, which causes too many modules being included in entrypoints ### [`v5.36.1`](https://togithub.com/webpack/webpack/releases/v5.36.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.36.0...v5.36.1) ### Performance - add `cache.profile` (`type: "filesystem"` only) flag for more info about (de)serialization timings - avoid complex "by exports" splitting for splitChunks in development mode - faster hashing for the common case - improve algorithmic complexity for merging InitFragments to solve performance in an edge case ### [`v5.36.0`](https://togithub.com/webpack/webpack/releases/v5.36.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.35.1...v5.36.0) ### Features - add support for class fields (stage 4) ### Performance - improve (de)serialization performance of dependency locations ### [`v5.35.1`](https://togithub.com/webpack/webpack/releases/v5.35.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.35.0...v5.35.1) ### Bugfixes - fix an `__webpack_exports__ is not defined` error with some library types ### performance - improve stats grouping performance - improve providedExports analysis performance - improve hashing performance - lazy merge dependencies from creating context modules - improve dependency parents access performance ### [`v5.35.0`](https://togithub.com/webpack/webpack/releases/v5.35.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.34.0...v5.35.0) ### Bugfixes - fix handling of build dependencies with `#` in path ### Performance - improve memory usage when using the filesystem cache > When reading a file into a Buffer and picking smaller slices of the Buffer > the small slices still keep a reference to the large original Buffer. > The leads to increased memory usage. A fix would be to clone the slice into > a smaller Buffer when wasting too much memory, but this has a performance cost. > There is now a new option `cache.allowCollectingMemory` which controls that. > For one-off builds you probably want `allowCollectingMemory: false` and > for watch builds you probably want `allowCollectingMemory: true`. > It defaults to false in production mode and true in development mode. ### [`v5.34.0`](https://togithub.com/webpack/webpack/releases/v5.34.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.33.2...v5.34.0) ### Features - add support for empty string in `resolve.extensions` and handle them in this order - add `pnpapi` as builtin external when using `target: "node"` ### Bugfixes - fix a bug where chunks filenames where not included in runtime when using splitChunks and runtimeChunk with `target: "node"` - fix deprecation message from LimitChunkCountPlugin ### Performance - precompile schemas into functions to avoid schema compilation overhead - fix performance regression when storing the cache - performance improvement for snapshot file iterators ### Developer Experience - remove removed `store: 'idle'` from schema description ### [`v5.33.2`](https://togithub.com/webpack/webpack/releases/v5.33.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.33.1...v5.33.2) ### Bugfix - handle falsy entry options correctly ### [`v5.33.1`](https://togithub.com/webpack/webpack/releases/v5.33.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.33.0...v5.33.1) ### Bugfix - fix passing publicPath to `this.importModule` ### [`v5.33.0`](https://togithub.com/webpack/webpack/releases/v5.33.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.32.0...v5.33.0) ### Features - adds support for specifying a `publicPath` per entrypoint - add `entry.xxx.publicPath` option ### Bugfix - disable injection of chunk loading logic for `executeModule` ### Performance - performance improvements for `export *` and reexports ### [`v5.32.0`](https://togithub.com/webpack/webpack/releases/v5.32.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.31.2...v5.32.0) ### Features - add support for a pseudo extensions `.webpack[type]` (e. g. `.webpack[javascript/auto]`) to specify the default module type when no other module type is specified - to be used with `!=!` inline syntax ### Bugfixes - fixes incorrect cache invalidation when new properties are added to the DefinePlugin ### Experiments - add `experiments.executeModule` to allow build-time execution of modules of the module graph - add `this.importModule(request, options, [callback]): Promise` to the loader context - add `compilation.executeModule(request, options, callback)` for plugins ### [`v5.31.2`](https://togithub.com/webpack/webpack/releases/v5.31.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.31.1...v5.31.2) ### Bugfixes - revert disposing of CodeGenerationResults since some plugins rely on the fact that they are still accessible after the compilation ### [`v5.31.1`](https://togithub.com/webpack/webpack/releases/v5.31.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.31.0...v5.31.1) ### Bugfixes - invalid hooks is no longer called twice for a compiler in a MultiCompiler ### Memory - eliminated some memory leaks - dispose code generation results after sealing the compilation ### Performance - improve performance of cache serialization by reducing number of write syscalls ### [`v5.31.0`](https://togithub.com/webpack/webpack/releases/v5.31.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.30.0...v5.31.0) ### Features - add a few more options for infrastructure logging: - `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. - When stream is an TTY colors is enabled and appendOnly is disabled. Otherwise it's flipped. ### Bugfixes - Persistent Caching - fix caching crash when using fsevents in build dependencies - improve resolving of build dependencies when `exports` field is used - make problems during resolving build dependencies warnings instead of debug messages - prioritize static reexport over runtime reexport for target determination - This helps in optimization by no longer opting out of optimization when some other exports any dynamic (from commonjs or empty/type-only modules) - fix bug with subtraction of runtimes - This fixes a problem with concatenated modules in builds with multiple runtimes and force-merged shared chunks - ensure that entrypoints are always re-executed when HMR-updated - This fixes no longer updating pages when the entrypoint crashed ### [`v5.30.0`](https://togithub.com/webpack/webpack/releases/v5.30.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.29.0...v5.30.0) ### Features - add GC to memory cache - opt-in via `cache.maxGenerations` when `cache.type: "memory"` - default for `cache.type: "filesystem"` and `mode: "development"` - configure via `cache.maxMemoryGenerations` when `cache.type: "filesystem"` - Generations = Rebuilds - add GC for untouched filesystem cache files - allow to configurate GC for the filesystem cache via `cache.maxAge` - allow to disable memory cache when using the filesystem cache with `cache.maxMemoryGenerations: 0` - Caches will be cleared on Compiler close resp Cache shutdown (after persisting for the filesystem cache) ### Bugfixes - add a few workarounds for v8 bug that causes memory leaks in optimized code (only partially fixes it) - after serializing filesystem no longer keeps cache items in memory, instead it will read them from disk again when accessed GC = Garbage Collection ### [`v5.29.0`](https://togithub.com/webpack/webpack/releases/v5.29.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.28.0...v5.29.0) ### Bugfixes - fix some edge cases for `splitChunks.maxSize` which cause too large chunks to be created - add `stats.groupModulesByType` to the schema ### Developer Experience - add resolving trace for error during resolving build dependencies - expose Stats-related types - exports AsyncDependenciesBlock and `Module/Const/NullDependency` on the API ### [`v5.28.0`](https://togithub.com/webpack/webpack/releases/v5.28.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.27.2...v5.28.0) ### Features - add `module.generator.asset.publicPath` to configure a different publicPath for assets ### Bugfixes - fixes a watch mode caching problem which was introduced in 5.26.0 when using the unsafe cache ### Performance - improve serialization performance ### [`v5.27.2`](https://togithub.com/webpack/webpack/releases/v5.27.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.27.1...v5.27.2) ### Bugfixes - fix error reporting when errors happen in `beforeLoaders` hook - avoid crash when `experiments.lazyCompilation` is used (regression) - fix lazy compilation opt-out when HMR accept/decline is used on an `import()` - fix `new URL(new URL` generated by worker handing ### [`v5.27.1`](https://togithub.com/webpack/webpack/releases/v5.27.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.27.0...v5.27.1) ### Bugfix - allow invalidation after first watch run in MultiCompilers ### [`v5.27.0`](https://togithub.com/webpack/webpack/releases/v5.27.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.26.3...v5.27.0) ### Features - add `utils: { contextify(context, absolutePath), absolutify(context, request) }` to loader context ### Bugfixes - fix caching bug when split chunks of an entrypoint change and modules of the entrypoint stay equal - fix `imports` field handling - fix incorrect id assignment of record ids plugin - this causes ids changing unnecessary during watch mode - fix library exports when using onChunks in entry - This prevented using libraries with web target when using splitChunks for the initial chunks ### [`v5.26.3`](https://togithub.com/webpack/webpack/releases/v5.26.3) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.26.2...v5.26.3) ##### Bugfix - fix race condition in MultiCompiler queueing ### [`v5.26.2`](https://togithub.com/webpack/webpack/releases/v5.26.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.26.1...v5.26.2) ### Bugfixes - fix problem with new line after comment - fix assign libraries with runtime chunk ### [`v5.26.1`](https://togithub.com/webpack/webpack/releases/v5.26.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.26.0...v5.26.1) ### Bugfixes - avoid using strict mode runtime for assign libraries to allow assigning not existing variables - avoid collision with `Set.addAll` polyfill - allow filenames starting with `../` when generation the undo path for non-web targets ### [`v5.26.0`](https://togithub.com/webpack/webpack/releases/v5.26.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.25.1...v5.26.0) ##### Features - handle cache version automatically for DefinePlugin - Values no longer need to be defined as build dependencies - add more options for `DefinePlugin.runtimeValue` (file/context/missing/buildDependencies, version) ##### Bugfixes - fix a memory leak which happens in watch mode with caching when modules are removed from the compilation - fix usage of some arrow functions when es5 target is selected - chunk loading in workers now uses publicPath instead of relative paths - fixes a problem when worker file is in a child directory ### [`v5.25.1`](https://togithub.com/webpack/webpack/releases/v5.25.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.25.0...v5.25.1) ##### Bugfixes - fix startup logic when non-js chunks are in the entrypoint - remove `type: "module"` for Workers when generating classic scripts ### [`v5.25.0`](https://togithub.com/webpack/webpack/releases/v5.25.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.24.4...v5.25.0) ### Features - Refactor the startup logic to improve library support - add `__webpack_runtime_id__` to access the current runtime id - improve error handling for HMR - add second argument to self accept error handler to pass new module and module id - add error handler argument to dependency accept, passing error and module ids - add `output.strictModuleErrorHandling` to opt into stricter evaluation error handling semantics according to ESM spec - used by default when HMR is enabled - when ignoring a module used by `new URL()` this will result in an url to a empty file (`"data:,"`) - add `module.generator.asset.emit` option to disable creating assets from asset modules (e. g. for SSR) ### Bugfixes - fix problem when library options apply to a non-runtime chunk - fix crash in `splitChunks.maxSize` where negative indicies are accessed - fix sub-optimal splitting of `splitChunks.maxSize` in some cases when multiple size types are involved - fix a memory leak in AssetGenerator - fix usage of runtime globals in SharedPlugin to support HMR updates ### Deprecations - deprecate `output.strictModuleExceptionHandling` (this is the CommonJS way of handling errors, and the name is weird) ### [`v5.24.4`](https://togithub.com/webpack/webpack/releases/v5.24.4) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.24.3...v5.24.4) ### Bugfixes - fix overridding built-in externals via `externals` - fix handling UNC paths as windows paths - Improve error when passing an empty array as library name - avoid adding the package.json from compilation context as build dependency - fix expansion of `"..."` in array configuration options when it's not at the start ### [`v5.24.3`](https://togithub.com/webpack/webpack/releases/v5.24.3) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.24.2...v5.24.3) ### Bugfixes - fix contenthash when a file is emitted twice with different filenames but that same contenthash ### [`v5.24.2`](https://togithub.com/webpack/webpack/releases/v5.24.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.24.1...v5.24.2) ##### Bugfixes - fix invalid syntax generated for destructuring with default values - fix some incorrect properties accesses in watch - `modifiedFiles` and `removedFiles` were undefined - fix some edge cases with MultiCompiler ### [`v5.24.1`](https://togithub.com/webpack/webpack/releases/v5.24.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.24.0...v5.24.1) ### Performance - improve performance of finding modules to concatenate - improve performance of getting incoming modules from connections - make sure that all serialized modules restore correctly - avoid storing ConcatenatedModule, since that's not needed ### Developer Experience - fix typo in deprecation message ### [`v5.24.0`](https://togithub.com/webpack/webpack/releases/v5.24.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.23.0...v5.24.0) ### Bugfixes - fix name conflict when using destructing with default arguments in concatenated modules - fix tracking of reexports in concatenated modules when using multiple `export *` that point to the same export - debug logging is now included even if logging is not - fix name of ModuleConcatenationPlugin logger - fix `experiments.lazyCompilation: true`. It now has an effect. ### Developer Experience - expose `Watching` type ### Contribution - fix husky setup ### Performance - improve performance of module concatenation ### [`v5.23.0`](https://togithub.com/webpack/webpack/releases/v5.23.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.22.0...v5.23.0) ### Features - add `parserOptions.url: "relative"` option - Allows to generate relative URLs from `new URL` (e. g. for SSG/SSR) ### Bugfixes - fixes for electron target - electron has importScripts in worker - only choose a chunkLoading which fits to the chunkFormat - prefer fetch wasm loading over node wasm loading - fix regression when combining library + runtimeChunk + node target ### Developer Experience - export MultiStats type ### [`v5.22.0`](https://togithub.com/webpack/webpack/releases/v5.22.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.21.2...v5.22.0) ### Features - generate shorter output code for JSON data by using a `'...'` string instead of `"..."` (only affects output side when not minimized) - the `dependencies` configuration option now works for watch builds too - It will build compilation when any of `dependencies` has changed - It will wait for compiling until all of `dependencies` have finished - add `parallelism` config option on the array of configurations to limit the compilers that are running in parallel ### Developer Experience - add hints (`Did you mean ...`) to resolve errors when - resolving fails due to `enforceExtension` - relative request is missing leading `./` - when all modules of an entrypoint fail resolving and another entrypoints `depend(s)On` it, webpack no longer crashes with a weird error - add hint to stats how to get details about errors/warnings in child compilations - improve error message for lazyCompilation when using IE11 ### Bugfixes - async entries e.g. for Workers are now implicitly flagged as "having side effects" even if they are affects by `"sideEffects": false` - in future we might add a warning for this - avoid crash when using `this.loadModule` (loader) and the loaded module has errors - refactor libraries to inline exporting code into runtime to allow using with `output.iife: false` - fix invalid code when using `define` for local modules and arrow functions are supported - fix missing runtime requirement for system.js context - fix parsing of `define` function, which missed declarations before - avoid unnecessary calls to loaders when serializer are already registered - fix inner graph analysis for exports when `export { x }` is before pure declaration `const x = /*#__PURE__*/ f()` - fix hashing order of runtime chunks when there are async entries involved ### Contribution - CI run tests on node.js 15 too - CI run tests on github actions too ### Experiments - improvements on experimental `output.library: { type: "module" }` (`experiments.outputModule: true`) - it can generate `export { ... }` now, but that can't handle live-bindings yet ### [`v5.21.2`](https://togithub.com/webpack/webpack/releases/v5.21.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.21.1...v5.21.2) ### Bugfixes - json with `constructor` property now caches correctly - json generation with object prototype property now works correctly - tree shaking json array when accessing `length` property now works correctly - fix incorrect call context when calling properties on imports from CommonJS modules ### [`v5.21.1`](https://togithub.com/webpack/webpack/releases/v5.21.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.21.0...v5.21.1) ### Bugfixes - fix a crash when using colors in stats ### [`v5.21.0`](https://togithub.com/webpack/webpack/releases/v5.21.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.20.2...v5.21.0) ### Features - add `__webpack_base_uri__` to change base URI at runtime - add `stats.errorDetails: "auto"` to show error details automatically when there are only 1 or 2 errors ### Bugfixes - fix a hanging build when using the persistent cache without a package.json in cwd ### Developer Experience - add typings for the stats JSON - change default for `stats.errorDetails` to `"auto"` when using `toString` - Highlight important text in error message with colors - e. g. `Did you mean ...?` and similar hints are shown in green ### [`v5.20.2`](https://togithub.com/webpack/webpack/releases/v5.20.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.20.1...v5.20.2) ### Bugfixes - fix caching issue with asset modules causing `undefined` files - fix problem that rebuildModule doesn't follow dependencies ### [`v5.20.1`](https://togithub.com/webpack/webpack/releases/v5.20.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.20.0...v5.20.1) ### Bugfix - fix `Caching failed for pack: RangeError [ERR_OUT_OF_RANGE]` warning when serializing the cache ### [`v5.20.0`](https://togithub.com/webpack/webpack/releases/v5.20.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.19.0...v5.20.0) ### Features - add `experiments.lazyCompilation.imports` to disable lazy compilation of `import()`s - add `experiments.lazyCompilation.test` to allow custom selection of modules that should be lazy compiled - When using `profile: true` resp. `--profile` webpack will now print a summary of expensive modules or loaders ### Bugfixes - fix that `experiments.lazyCompilation.client` now works as intended - fix a bug which causes runtime requirements to be missing e. g. `__webpack_require__ is not defined` ### Developer Experience - expose `EntryObject` type in typings - remove `pkg-dir` dependency ### [`v5.19.0`](https://togithub.com/webpack/webpack/releases/v5.19.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.18.0...v5.19.0) ### Features - allow to set chunk name for `exposes` for `ModuleFederationPlugin` ### Bugfixes - add a missing simicolon in runtime code - improve consistency of top level await with other implementations and the spec - make `options` for `ProgressPlugin` optional in typings ### Performance - try to avoid unnecessary allocations ### [`v5.18.0`](https://togithub.com/webpack/webpack/releases/v5.18.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.17.0...v5.18.0) ### Internals - refactor hashing to move the responsibility of hashing module exports info and referenced modules from Dependencies to the Module - Hashing in Dependencies can be much cheaper now (could improve performance when many dependencies are used that point to the same module, like many references to `React.createElement`) - Fixes bugs where Dependencies forgot to hash some details about the referenced module - The new model elimiates the potential of such bugs are Dependencies have less responsibilities now ### [`v5.17.0`](https://togithub.com/webpack/webpack/releases/v5.17.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.16.0...v5.17.0) ### Features - add experimental lazy compilation via `experiments.lazyCompilation: true` for web and node targets - compiles entrypoints and `import()`s only when they are accessed - More details see: [#​12469](https://togithub.com/webpack/webpack/pull/12469) - Known issues: `webpack-dev-server`/`webpack serve` opening an entrypoint for the first time, sometimes need a manual refresh. - move some javascript parsing related configuration options from `module` to `module.parser.javascript` and also allow to set them via `module.rules` - add `module.parser.javascript.commonjsMagicComments` to enable `/* webpackIgnore: true */` for `require()` calls ### Bugfixes - fix a problem with `webpack.debug.ProfilingPlugin` on Mac when the computer was suspended before. - fix a bug with IIFE handling when the IIFE has parameters with default values ### [`v5.16.0`](https://togithub.com/webpack/webpack/releases/v5.16.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.15.0...v5.16.0) ### Features - add `__webpack_is_included__("./some-module")` which returns true when the module is bundled and false when not - priorize eager shared modules over normal shared modules (with the same version), as they are loaded anyway - add `library.type: "assign-properties"` which merges all exports into a global variable - allow `optimization.innerGraph` for `new URL()` - This allows to detect which URLs are used and drop the module and asset when they are not. ### Bugfixes - only return exports from runtime when needed - This allows to use `experiments.outputModule: true` with `optimization.runtimeChunk` - fix a bug that `splitChunk.reuseExistingChunk` doesn't work for entrypoints - This optimized an edge case where a nearly empty entrypoint is created when an entrypoint contains only vendor modules ### Developer Experience - include plugin names in deprecation message for "NormalModuleFactory.xxx is no longer a waterfall hook" - improve error message when passing an invalid library name ### [`v5.15.0`](https://togithub.com/webpack/webpack/releases/v5.15.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.14.0...v5.15.0) ### Features - add `getResolve` method to data object when using function `externals` - `externals` function may return a promise now ### Bugfixes - fix `define("local-module", expr)` generating invalid syntax - fix resolving bug when resolving build dependencies - add `chunkModulesSpace` to schema - fix `rebuildModule` api ### Performance - improve performance of build dependencies resolving ### [`v5.14.0`](https://togithub.com/webpack/webpack/releases/v5.14.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.13.0...v5.14.0) ### Features - add experimental ESM tracking for build dependencies ### Bugfixes - fix crash when calling `watcher.getContextTimeInfoEntries()` - make filesystem types compatible with `memfs` and real `fs` - fix rebuild error when using the `AutomaticPrefetchPlugin` ### Contribution - improve type definitions by using typescript 4.2 ### [`v5.13.0`](https://togithub.com/webpack/webpack/releases/v5.13.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.12.3...v5.13.0) ### Features - add `resolve.preferAbsolute` flag for compatibility with webpack 4 - add support for wildcards in `exports` and `imports` field - improve chunk and module names - use `nameForCondition()` as fallback for module names - handle module connection with only transive side effects correctly when determining chunk root modules ### [`v5.12.3`](https://togithub.com/webpack/webpack/releases/v5.12.3) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.12.2...v5.12.3) ### Bugfixes - upgrade `@webassembly/*` and `terser-webpack-plugin` dependencies ### [`v5.12.2`](https://togithub.com/webpack/webpack/releases/v5.12.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.12.1...v5.12.2) ### Bugfixes - fix problem with typings in strict mode ### [`v5.12.1`](https://togithub.com/webpack/webpack/releases/v5.12.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.12.0...v5.12.1) ### Bugfixes - fix a crash in ConcatenatedModule when deserializing - fix some not serializable warnings - show error when using an invalid identifier as `var` library ### [`v5.12.0`](https://togithub.com/webpack/webpack/releases/v5.12.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.11.1...v5.12.0) ### Features - add `experiments.layers` - `entry.xxx.layer: "name-of-layer"` allows to set the layer for an entrypoint - `module.rules[].issuerLayer: RuleCondition` allows to filter/match by layer of issuer - `module.rules[].layer: "name-of-layer"` allows to set the layer of an module - `splitChunks.cacheGroups.xxx.layer` allows to select modules by layer - `externals.byLayer["name-of-layer"]` allows to specify externals by layer - `externals.byLayer: (layer) => ...` allows to specify externals by layer - `externals` function has an additional argument property `contextInfo` which contains info about the issuer (e. g. the layer) - add `module.parser` and `module.generator` options to allow to specify parser/generator options globally per module type - make `chunkId` variable available in script tag hook (like it was with webpack 4) ### Bugfixes - escape exclamation marks in context regexp when generating readable module names/ids - fix a problem when bundling webpack bundles with enabled eval-based devtools - add `stats.nestedModulesSpace` to schema to allow to specify this option - fix a bug that incorrectly replaces `new.target` with constants - fix a bug where `splitChunk` `minSize` is not handled correctly - fix a bug where the order of `splitChunk` `cacheGroups` is not handled correctly - avoid adding non-filesystem resources as dependencies for watching and caching ### Developer experience - fix incorrect negation in hint comment for eval-based devtools - improve error messages of "Library/Chunk Loading/Wasm Loading typeof is not enabled" errors - improve question message when asking to install webpack-cli - show a warning when loaders/plugins report invalid dependencies to webpack ### Contributing - examples use webpack-cli 4 now - rename memorize to memoize ### [`v5.11.1`](https://togithub.com/webpack/webpack/releases/v5.11.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.11.0...v5.11.1) ##### Bugfixes - ignore cloned ExportInfo during hashing - fixes a problem where changing modules affects hashes in some other part of the application during development - fixes compileBooleanMatcher when prefix and suffix overlap - fixes invalidate code generated when generating properties access - fix `object` types in typings - expose more types regarding Stats ### [`v5.11.0`](https://togithub.com/webpack/webpack/releases/v5.11.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.10.3...v5.11.0) ### Features - update typings to include undefined/null types (for strict type) - export WebpackError - export Asset and AssetInfo types - allow error configuration for `validateSchema` function ### Bugfixes - fix typings for SourceMapSource - allow custom properties in AssetInfo - handle `undefined` values for rule conditions like empty strings ### [`v5.10.3`](https://togithub.com/webpack/webpack/releases/v5.10.3) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.10.2...v5.10.3) ### Bugfixes - errors in initial cache no longer cause build dependencies to be ignored - manual side effects flagging should override automatic analysis - modules in dlls without entryOnly will no longer be dropped because of no side effects ### [`v5.10.2`](https://togithub.com/webpack/webpack/releases/v5.10.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.10.1...v5.10.2) ##### Bugfixes - add a few missing node.js libraries as externals in `target: "node"` - improve cache (de)serialization to allow larger cache files (>2GB) and increase performance for them ### [`v5.10.1`](https://togithub.com/webpack/webpack/releases/v5.10.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.10.0...v5.10.1) ### Bugfixes - avoid duplicating chunk info in chunk loading global - allow executing chunks before runtime is loaded - avoid error when emitting assets with different query string but identical filename and content - fix duplicated asset name in `processAssets` with `additionalAssets` - add missing `\` in module info header comment ### [`v5.10.0`](https://togithub.com/webpack/webpack/releases/v5.10.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.9.0...v5.10.0) ### Bugfixes - Multiple fixes regarding the side effects optimization (`"sideEffects": false`) when reexports and concatenated modules are combined ### Contributing - Typescript major 4 - Improved internal structure of our typings ### Performance - `output.pathinfo: true` (default in development) adds less verbose information (and is faster) - `output.pathinfo: "verbose"` adds more verbose information - `output.pathinfo: true` is cached - avoid assets and module stats information generation when they are cached and cached assets/modules are not shown ### [`v5.9.0`](https://togithub.com/webpack/webpack/releases/v5.9.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.8.0...v5.9.0) ### Features - improve side effects analysis to report imported and reexported symbols as side-effect-free ### Bugfixes - fix problem when HMR and different runtimes (e. g. with Workers) - caused crash with `... has no hash info for runtime ...` ### [`v5.8.0`](https://togithub.com/webpack/webpack/releases/v5.8.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.7.0...v5.8.0) ### Features - add the ability to process assets generated in later stages during processAssets - new processAssets stage: `PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE` - add hooks to the RealContentHashPlugin to allow to process custom hashes (e. g. SRI) ### Bugfixes - fix typing for child compiler plugins - SourceMapPlugin will process assets added in later stages during asset processing ### [`v5.7.0`](https://togithub.com/webpack/webpack/releases/v5.7.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.6.0...v5.7.0) ### Features - CLI supports installing webpack-cli via `pnpm` ### Bugfixes - fix problem with ASI detection, causing semicolons inserted after `if(...)` etc. ### [`v5.6.0`](https://togithub.com/webpack/webpack/releases/v5.6.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.5.1...v5.6.0) ### Bugfixes - emit warnings/errors for exports in commonjs modules for which we know that they don't exist ### [`v5.5.1`](https://togithub.com/webpack/webpack/releases/v5.5.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.5.0...v5.5.1) ##### Bugfixes - fix crash when \_\_esModule is defined with defineProperty without value ### [`v5.5.0`](https://togithub.com/webpack/webpack/releases/v5.5.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.4.0...v5.5.0) ### Bugfixes - fix ASI issues that occur between concatenated modules - fix incorrect handling of `[id]` and etc. in SourceMap sources - fix side-effect-free handling of exports for concatenated modules that causes an unused export - make ESM-CJS interop handling consistent - make `__esModule` flag consistent exposed - handle non enumerable exports - handle inherited exports - handle exported Promises ### [`v5.4.0`](https://togithub.com/webpack/webpack/releases/v5.4.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.3.2...v5.4.0) ### Bugfixes - fix renaming in super class expression in nested scopes - fix parsing and handling of browserlist queries - fix a few edge cases with ESM-CJS interop and .mjs - fix ASI edge cases ### [`v5.3.2`](https://togithub.com/webpack/webpack/releases/v5.3.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.3.1...v5.3.2) ### Bugfixes - runtime-dependent concatenated modules can generate code for runtime-dependent execution order of concatenated modules ### [`v5.3.1`](https://togithub.com/webpack/webpack/releases/v5.3.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.3.0...v5.3.1) ### Bugfixes - fix incorrect concatenation of modules when multiple runtimes are involved - fixes a "This should not happen" error - fixes a `__webpack_require__(null)` problem - run CLI correctly after installing - fixes a huge performance issue when processing minimized code with SourceMap - Use `string[]` types instead of `[string, ...string[]]` for arrays that must not be empty - this is more convinient to use ### Performance - avoid incorrect store of counts in the ProgressPlugin, which causes unneeded serialization of the Persistent Cache - upgrade terser-webpack-plugin for performance improvements - upgrade webpack-sources for performance improvements ### [`v5.3.0`](https://togithub.com/webpack/webpack/releases/v5.3.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.2.1...v5.3.0) ### Features and Bugfixes - generate runtime conditional code when modules are forcefully merged from multiple runtimes - This fixes a `Cannot read property 'call' of undefined` error in webpack runtime, because modules are used that are not in the graph in one runtime - disabled source code analysis for side effects in non-production modes - this causes unnecessary changes to parent modules in development - add `optimization.sideEffects: "flag"` as option for this ### [`v5.2.1`](https://togithub.com/webpack/webpack/releases/v5.2.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.2.0...v5.2.1) ### Bugfixes - add `watchOptions.followSymlinks` option to schema - fix hard crash when calling resolve with undefined value - fix emit problem when files have hash in query string - fix unneeded generation of SourceMaps when no devtool is used - fixes a huge performance regression with terser-webpack-plugin ### [`v5.2.0`](https://togithub.com/webpack/webpack/releases/v5.2.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.1.3...v5.2.0) ### Features - add `sourceFilename` and `javascriptModule` to asset info for plugins ### Bugfixes - fix variable name collision when using module concatenation - fix arrow functions in ie 11 - fix `this` externals with module concatenation - force update for enhanced-resolve for critical bugfixes (see [changelog](https://togithub.com/webpack/enhanced-resolve/releases/tag/v5.3.0)) ### [`v5.1.3`](https://togithub.com/webpack/webpack/releases/v5.1.3) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.1.2...v5.1.3) ### Bugfixes - omit unused modules from chunks when modules are only unused in some runtimes - fixes `Self-reference dependency has unused export name` error - fix order of asset optimization to fix conflict between compression-plugin and real hash plugin ### [`v5.1.2`](https://togithub.com/webpack/webpack/releases/v5.1.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.1.1...v5.1.2) ### Bugfixes - revert: omit unused modules from chunk when modules are only unused in some runtimes - caused issues with mini-css modules ### [`v5.1.1`](https://togithub.com/webpack/webpack/releases/v5.1.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.1.0...v5.1.1) ### Bugfixes - fix order of chunk hashing to allow to uses hashes in WebWorkers - update to terser-webpack-plugin 5 - reduces number of dependencies by dropping webpack 4 support - omit unused modules from chunk when modules are only unused in some runtimes - fixes `Self-reference dependency has unused export name` error - fix hanging production builds because of infinite loop in inner graph optimization - `Compilation.deleteAsset` updates chunk to file mappings ### [`v5.1.0`](https://togithub.com/webpack/webpack/releases/v5.1.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.0.0...v5.1.0) ### Features - expose `webpack` property from `Compiler` - expose `cleverMerge`, `EntryOptionPlugin`, `DynamicEntryPlugin` ### Bugfixes - missing `require("..").xxx` in try-catch produces a warning instead of an error now - handle reexports in concatenated modules correctly when they are side-effect-free - fix incorrect deprecation message for ModuleTemplate.hooks.hash ### [`v5.0.0`](https://togithub.com/webpack/webpack/releases/v5.0.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.46.0...v5.0.0) [Announcement and changelog](https://webpack.js.org/blog/2020-10-10-webpack-5-release/) ### [`v4.46.0`](https://togithub.com/webpack/webpack/releases/v4.46.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.45.0...v4.46.0) ##### Bugfixes - fix behavior of defaults for `resolve.roots` to be backward-compatible ### [`v4.45.0`](https://togithub.com/webpack/webpack/releases/v4.45.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.44.2...v4.45.0) ##### Features - resolve server-relative requests relative to project context by default ##### Bugfixes - fix a bug where `splitChunk` `minSize` is not handled correctly - fix a bug where the order of `splitChunk` `cacheGroups` is not handled correctly ### [`v4.44.2`](https://togithub.com/webpack/webpack/releases/v4.44.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.44.1...v4.44.2) ##### 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 ### [`v4.44.1`](https://togithub.com/webpack/webpack/releases/v4.44.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.44.0...v4.44.1) ### 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 ### [`v4.44.0`](https://togithub.com/webpack/webpack/releases/v4.44.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.43.0...v4.44.0) ##### 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 default `resolve.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 ##### Bugfixes - fix bug where splitChunks produced non-optimal results when `minSize` is set to `0` - This lead to `NaN`s in some places which breaks ordering - 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 ### [`v4.43.0`](https://togithub.com/webpack/webpack/releases/v4.43.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.42.1...v4.43.0) ##### Features - add `module.hot.invalidate()` to HMR API ##### Dependencies - push versions for forced security updates ### [`v4.42.1`](https://togithub.com/webpack/webpack/releases/v4.42.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.42.0...v4.42.1) ##### Bugfixes - update webassemblyjs dependencies for instruction update - update mkdirp dependency for security reasons ### [`v4.42.0`](https://togithub.com/webpack/webpack/releases/v4.42.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.41.6...v4.42.0) ##### Bugfixes - Disable constant replacements in `"use asm"` scope - Update schema to disallow functions for `output.hotUpdateChunkFilename` as this doesn't work - Hoist exports in concatenated module to handle circular references with non-concatenated modules correctly - Flag all modules as used in DLLs to fix missing exports ### [`v4.41.6`](https://togithub.com/webpack/webpack/releases/v4.41.6) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.41.5...v4.41.6) ##### Bugfixes - Windows network paths are considered as absolute paths - fix hanging of FlagDependencyExportsPlugin when using `export *` in a circular matter ### [`v4.41.5`](https://togithub.com/webpack/webpack/releases/v4.41.5) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.41.4...v4.41.5) ##### Bugfixes - handle relative paths with `webpack://` prefix in SourceMaps correctly - fixes a non-determinism about `providedExports` with `export *` which caused changing module hashes and unnecessary HMR invalidation ### [`v4.41.4`](https://togithub.com/webpack/webpack/releases/v4.41.4) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.41.3...v4.41.4) ##### Bugfixes - fix case where `__webpack_require__.e` is not a function when using module concatenation - fix incorrect imported module when using sideEffects in a certain constellation of export names ##### Performance - lazy-require Webassembly related modules for improved startup performance ### [`v4.41.3`](https://togithub.com/webpack/webpack/releases/v4.41.3) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.41.2...v4.41.3) ##### Security - force upgrade terser-webpack-plugin dependency for security fix (not affecting webpack) ##### Funding - add npm funding field to package.json ### [`v4.41.2`](https://togithub.com/webpack/webpack/releases/v4.41.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.41.1...v4.41.2) ### Bugfixes - fix issue with invalide timezone ### [`v4.41.1`](https://togithub.com/webpack/webpack/releases/v4.41.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.41.0...v4.41.1) ### Bugfixes - fix incorrect request shortening when directory looks similar to parent directory - fix crash when timezone is unknown ### [`v4.41.0`](https://togithub.com/webpack/webpack/releases/v4.41.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.40.3...v4.41.0) ### Developer Experience - disallow cache group named test with shorthand syntax to point out a potential config error ### Performance - Improve performance of LimitChunkCountPlugin ### [`v4.40.3`](https://togithub.com/webpack/webpack/releases/v4.40.3) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.40.2...v4.40.3) ### Bugfixes - fix a bug that the HMR plugin affected child compilations ### Performance - improve performance of splitChunks name option by caching hashed value - improve rebuild performance by caching module size computation ### [`v4.40.2`](https://togithub.com/webpack/webpack/releases/v4.40.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.40.1...v4.40.2) ### Bugfixes - fix a bug where asset is undefined ### [`v4.40.1`](https://togithub.com/webpack/webpack/releases/v4.40.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.40.0...v4.40.1) ### Bugfixes - convert "multiple assets emit to the same filename" error into a warning - compare asset content when multiple assets emit to the same filename ### [`v4.40.0`](https://togithub.com/webpack/webpack/releases/v4.40.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.39.3...v4.40.0) ### Features - adds asset info for emitted assets - new methods allow easy emitting/updating of assets `compilation.emitAsset/updateAsset` (instead of accessing the Object `compilation.assets`) - new getter methods to get assets `compilation.getAssets()` and `compilation.getAsset(name)` - 3 flags in asset info: - `immutable`: when set an asset can be cache infinitely - `development`: when set an asset is some kind of development tool (i. e. a SourceMap) - `hotModuleReplacement`: when set an asset is generated for an hot update - Stats expose `info` object in assets - String version of Stats show flags ### [`v4.39.3`](https://togithub.com/webpack/webpack/releases/v4.39.3) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.39.2...v4.39.3) ##### Bugfixes - fix a missing module in chunk caused by incorrect chunk graph generation of async chunks ### [`v4.39.2`](https://togithub.com/webpack/webpack/releases/v4.39.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.39.1...v4.39.2) ### Bugfixes - fix ProfilingPlugin not ending traces correctly ### [`v4.39.1`](https://togithub.com/webpack/webpack/releases/v4.39.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.39.0...v4.39.1) ### Bugfixes - fix problem that progress lines were too long on some terminals - fix a problem that `...100%` is displayed instead of `100%` ### [`v4.39.0`](https://togithub.com/webpack/webpack/releases/v4.39.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.38.0...v4.39.0) ### Features - Infrastructure logger for node.js has now colors + symbols to mark different kind of messages - Logger API has now a `status` method which allows to write temporary status messages - ProgressPlugin default handler uses the Infrastructure Logger status message to output messages - Placeholders in paths can now be escaped with i. e. `[\id\]` - `Compiler.hooks.assetEmitted` have been added to get byte content of emitted assets ### Bugfixes - Logging output is now aligned to have space for symbols - renamed `Compiler.hooks.infrastructurelog` to `Compiler.hooks.infrastructureLog` - Properties that are defined on the Object.prototype can now be chunk ids (i. e. `constructor`) - `library.name` now supports placeholders in `libraryTarget: "system"` - 2 places were module profiles were incorrectly captured were fixed ### Dependencies - Forced upgrade of all direct dependencies - webpack-sources + terser-webpack-plugin comes with quality optimizations for SourceMaps ### [`v4.38.0`](https://togithub.com/webpack/webpack/releases/v4.38.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.37.0...v4.38.0) ### Performance - Improved performance of ProgressPlugin - Improved performance of chunk graph generation - This can boost performance when many chunks are used, especially incremental build performance - Modules from parent chunks are now tracked during chunk graph generation, which allows to skip these modules in async chunks. This often renders `optimization.removeAvailableModules` unneeded, expect in scenarios where chunks are merged during optimization. - `optimization.removeAvailableModules` is now disabled in development mode by default - `optimization.removeAvailableModules` will be disabled for all modes in next major release, feel free to disable it in production too if you want extra performance. ### [`v4.37.0`](https://togithub.com/webpack/webpack/releases/v4.37.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.36.1...v4.37.0) ### Features - add logging API (see [#​9436](https://togithub.com/webpack/webpack/pull/9436) for details) ### [`v4.36.1`](https://togithub.com/webpack/webpack/releases/v4.36.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.36.0...v4.36.1) ### Bugfixes - fix regression in 4.36.0 when using happypack ### [`v4.36.0`](https://togithub.com/webpack/webpack/releases/v4.36.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.35.3...v4.36.0) ### Features - SourceMapDevToolPlugin `append` option now supports the default placeholders in addition to `[url]` - Arrays in resolve and parser options (Rule and Loader API) support backreferences with `"..."` when overriding options. ### [`v4.35.3`](https://togithub.com/webpack/webpack/releases/v4.35.3) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.35.2...v4.35.3) ### Bugfixes - update acorn to include `import()` ### Performance - Improved runtime performance for large JSON modules ### [`v4.35.2`](https://togithub.com/webpack/webpack/releases/v4.35.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.35.1...v4.35.2) ### Bugfixes - `realResource` must match absolute paths ### [`v4.35.1`](https://togithub.com/webpack/webpack/releases/v4.35.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.35.0...v4.35.1) ### Bugfixes - add `realResource` condition in rule to schema - fixes order of loaders when using a matchResource ### [`v4.35.0`](https://togithub.com/webpack/webpack/releases/v4.35.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.34.0...v4.35.0) ### Features - ProgressPlugin limit output to column width in terminal - add `Watching.suspend` and `Watching.resume` - add `splitChunks.automaticNameMaxLength` and `splitChunks.cacheGroups[x].automaticNameMaxLength` ### Bugfixes - webworker target now respect `publicPath` when loading chunks - holey arrays of configs will fail the validation ### [`v4.34.0`](https://togithub.com/webpack/webpack/releases/v4.34.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.33.0...v4.34.0) ### Features - Error message when parsing fails shows used loaders now ### Bugfixes - importing the namespace object from non-ESM (CJS) modules no longer leads to an warning - Error message in HMR logging works for Firefox too now - Parser understands block scoping now ### [`v4.33.0`](https://togithub.com/webpack/webpack/releases/v4.33.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.32.2...v4.33.0) ### Features - add `target: "electron-preload"` for electron 5 - renderer should use `target: "web"` in electron 5 ### Bugfixes - fix HMR rejection of removed and readded self-accepted modules ### [`v4.32.2`](https://togithub.com/webpack/webpack/releases/v4.32.2) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.32.1...v4.32.2) ### Bugfixes - fix some weird schema validation messages - fix problem in production mode (sideEffects + concatenation) which caused reexported values to become undefined (bug since 4.32.0) ### [`v4.32.1`](https://togithub.com/webpack/webpack/releases/v4.32.1) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.32.0...v4.32.1) ### Bugfixes - reverts some changes from 4.32.0 which accidentally disabled some CommonJs features when using `node: false`. ### [`v4.32.0`](https://togithub.com/webpack/webpack/releases/v4.32.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.31.0...v4.32.0) ### Features - Added `this.mode` to the loader API, to allow loaders to choose defaults by `mode` similar to webpacks options - Stack Trace for Errors in rejected Promises from `import()` now includes the stack from where the `import()` was called ### Bugfixes - The Parser can now analyse identifiers in rest patterns too - `const { a, ...rest } = obj`, where `rest` conflicts with an imported binding etc. - `node: false` now correctly disables `__dirname` and `__filename` too - `__dirname` and `__filename` now no longer evaluates to something when `node: false` or `node.__file/dirname: false` is set - `if(__dirname !== "")` is no longer replaced with `if(true)` in such scenarios - prefetching chunks is no executed **after** the initial module evaluation - This allows to override i. e. `__webpack_public_path__` for prefetching too - fixes a runtime crash when using side-effect-free modules with the DllPlugin ### Contribute - CI tests node.js 12 now too - webpack-bot now merges dependabot PRs automatically when status checks succeed ### [`v4.31.0`](https://togithub.com/webpack/webpack/releases/v4.31.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.30.0...v4.31.0) ### Features - add `errors-warnings` stats preset ### Bugfixes - allow top-level return in non-ESM modules ### [`v4.30.0`](https://togithub.com/webpack/webpack/releases/v4.30.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.29.6...v4.30.0) ##### Features - add `amd: false` to disable AMD support - `Compilation.hooks.finishModules` now also allows async plugins - add `output.libraryTarget: "system"` to compile for SystemJs environment ##### Bugfixes - fix generating a `null` id when concatenating an entry module in a different chunk - fix unneeded chunk references when splitting modules from chunks - fix parsing of function name in function scope ##### Performance - Lazy require some internal files - Faster way to generate function headers ##### Contributing - Run prettier on examples markdown ### [`v4.29.6`](https://togithub.com/webpack/webpack/releases/v4.29.6) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.29.5...v4.29.6) ##### Bugfixes - typeof `__webpack_require__` and `require.onError` is no longer evaluated to `undefined` and evaluation is done at runtime instead. - `this` value in `module.hot.accept` with imported dependency is correctly preserved. - webassemblyjs updated to latest version ##### Contributing - added a linting step to ensure all dependencies resolve to `npm` modules ### [`v4.29.5`](https://togithub.com/webpack/webpack/releases/v4.29.5) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.29.4...v4.29.5) ##### Bugfixes - update `@webassemblyjs` to remove git dependency ### [`v4.29.4`](https://togithub.com/webpack/webpack/releases/v4.29.4) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.29.3...v4.29.4) ##### Bugfixes - update `@webassemblyjs` for bugfixes ### [`v4.29.3`](https://togithub.com/webpack/webpack/releases/v4.29.3) [Compare Source](https:/

Configuration

:date: Schedule: "before 9am,after 5pm" in timezone Europe/London.

:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.

:recycle: Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

:no_bell: 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.

renovate[bot] commented 3 years ago

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 5.x releases. However, if you upgrade to 5.x manually then Renovate will then reenable updates for minor and patch updates automatically.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.