mirror of https://github.com/webpack/webpack.git
fix: d.ts
This commit is contained in:
parent
2bb1402469
commit
54b687d8a1
|
@ -9,6 +9,7 @@ const { STAGE_BASIC } = require("../OptimizationStages");
|
|||
const createSchemaValidation = require("../util/create-schema-validation");
|
||||
const { runtimeEqual } = require("../util/runtime");
|
||||
|
||||
/** @typedef {import("../../declarations/plugins/optimize/MergeDuplicateChunksPlugin").MergeDuplicateChunksPluginOptions} MergeDuplicateChunksPluginOptions */
|
||||
/** @typedef {import("../Compiler")} Compiler */
|
||||
|
||||
const validate = createSchemaValidation(
|
||||
|
@ -22,6 +23,9 @@ const validate = createSchemaValidation(
|
|||
);
|
||||
|
||||
class MergeDuplicateChunksPlugin {
|
||||
/**
|
||||
* @param {MergeDuplicateChunksPluginOptions} options options object
|
||||
*/
|
||||
constructor(options = { stage: STAGE_BASIC }) {
|
||||
validate(options);
|
||||
this.options = options;
|
||||
|
|
|
@ -8644,10 +8644,16 @@ declare class MemoryCachePlugin {
|
|||
apply(compiler: Compiler): void;
|
||||
}
|
||||
declare class MergeDuplicateChunksPlugin {
|
||||
constructor(options?: { stage: -10 });
|
||||
options: { stage: -10 };
|
||||
constructor(options?: MergeDuplicateChunksPluginOptions);
|
||||
options: MergeDuplicateChunksPluginOptions;
|
||||
apply(compiler: Compiler): void;
|
||||
}
|
||||
declare interface MergeDuplicateChunksPluginOptions {
|
||||
/**
|
||||
* Specifies the stage for merging duplicate chunks.
|
||||
*/
|
||||
stage?: number;
|
||||
}
|
||||
declare class MinChunkSizePlugin {
|
||||
constructor(options: MinChunkSizePluginOptions);
|
||||
options: MinChunkSizePluginOptions;
|
||||
|
|
Loading…
Reference in New Issue