webpack 5.105.1 → 5.105.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -33,8 +33,8 @@ const memoize = require("./util/memoize");
33
33
  /** @typedef {import("../declarations/WebpackOptions").StatsOptions} StatsOptions */
34
34
  /** @typedef {import("../declarations/WebpackOptions").WebpackOptions} Configuration */
35
35
  /** @typedef {import("../declarations/WebpackOptions").WebpackOptionsNormalized} WebpackOptionsNormalized */
36
- /** @typedef {import("./webpack").WebpackPluginFunction} WebpackPluginFunction */
37
- /** @typedef {import("./webpack").WebpackPluginInstance} WebpackPluginInstance */
36
+ /** @typedef {import("../declarations/WebpackOptions").WebpackPluginFunction} WebpackPluginFunction */
37
+ /** @typedef {import("../declarations/WebpackOptions").WebpackPluginInstance} WebpackPluginInstance */
38
38
  /** @typedef {import("./ChunkGroup")} ChunkGroup */
39
39
  /** @typedef {import("./Compiler").AssetEmittedInfo} AssetEmittedInfo */
40
40
  /** @typedef {import("./Compilation").Asset} Asset */
package/lib/webpack.js CHANGED
@@ -32,7 +32,7 @@ const memoize = require("./util/memoize");
32
32
  /** @typedef {import("./Stats")} Stats */
33
33
 
34
34
  /** @typedef {(this: Compiler, compiler: Compiler) => void} WebpackPluginFunction */
35
- /** @typedef {(compiler: Compiler) => void} WebpackPluginInstance */
35
+ /** @typedef {(compiler: Compiler) => void} WebpackPluginInstanceApplyFunction */
36
36
 
37
37
  const getValidateSchema = memoize(() => require("./validateSchema"));
38
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "5.105.1",
3
+ "version": "5.105.2",
4
4
  "description": "Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
5
5
  "homepage": "https://github.com/webpack/webpack",
6
6
  "bugs": "https://github.com/webpack/webpack/issues",
@@ -6049,7 +6049,7 @@
6049
6049
  "apply": {
6050
6050
  "description": "The run point of the plugin, required method.",
6051
6051
  "instanceof": "Function",
6052
- "tsType": "import('../lib/webpack').WebpackPluginInstance"
6052
+ "tsType": "import('../lib/webpack').WebpackPluginInstanceApplyFunction"
6053
6053
  }
6054
6054
  },
6055
6055
  "required": ["apply"]
package/types.d.ts CHANGED
@@ -12432,8 +12432,8 @@ declare interface Optimization {
12432
12432
  | ""
12433
12433
  | 0
12434
12434
  | ((this: Compiler, compiler: Compiler) => void)
12435
- | "..."
12436
12435
  | WebpackPluginInstance
12436
+ | "..."
12437
12437
  )[];
12438
12438
 
12439
12439
  /**
@@ -12576,8 +12576,8 @@ declare interface OptimizationNormalized {
12576
12576
  */
12577
12577
  minimizer?: (
12578
12578
  | ((this: Compiler, compiler: Compiler) => void)
12579
- | "..."
12580
12579
  | WebpackPluginInstance
12580
+ | "..."
12581
12581
  )[];
12582
12582
 
12583
12583
  /**
@@ -12696,8 +12696,8 @@ type OptimizationNormalizedWithDefaults = OptimizationNormalized & {
12696
12696
  minimize: NonNullable<undefined | boolean>;
12697
12697
  minimizer: (
12698
12698
  | ((this: Compiler, compiler: Compiler) => void)
12699
- | "..."
12700
12699
  | WebpackPluginInstance
12700
+ | "..."
12701
12701
  )[];
12702
12702
  nodeEnv: NonNullable<undefined | string | false>;
12703
12703
  };
@@ -19890,7 +19890,6 @@ declare namespace exports {
19890
19890
  this: Compiler,
19891
19891
  compiler: Compiler
19892
19892
  ) => void;
19893
- export type WebpackPluginInstance = (compiler: Compiler) => void;
19894
19893
  export type ExternalItemFunctionCallback = (
19895
19894
  data: ExternalItemFunctionData,
19896
19895
  callback: (
@@ -20013,6 +20012,7 @@ declare namespace exports {
20013
20012
  StatsOptions,
20014
20013
  Configuration,
20015
20014
  WebpackOptionsNormalized,
20015
+ WebpackPluginInstance,
20016
20016
  ChunkGroup,
20017
20017
  AssetEmittedInfo,
20018
20018
  Asset,