Merge pull request #16419 from karlhorky/patch-1
Add NormalModuleReplacementPlugin argument type
This commit is contained in:
commit
3b8c9c613e
|
@ -8,7 +8,7 @@
|
|||
const { join, dirname } = require("./util/fs");
|
||||
|
||||
/** @typedef {import("./Compiler")} Compiler */
|
||||
/** @typedef {function(TODO): void} ModuleReplacer */
|
||||
/** @typedef {function(import("./NormalModuleFactory").ResolveData): void} ModuleReplacer */
|
||||
|
||||
class NormalModuleReplacementPlugin {
|
||||
/**
|
||||
|
|
|
@ -7926,10 +7926,10 @@ declare class NormalModuleReplacementPlugin {
|
|||
*/
|
||||
constructor(
|
||||
resourceRegExp: RegExp,
|
||||
newResource: string | ((arg0?: any) => void)
|
||||
newResource: string | ((arg0: ResolveData) => void)
|
||||
);
|
||||
resourceRegExp: RegExp;
|
||||
newResource: string | ((arg0?: any) => void);
|
||||
newResource: string | ((arg0: ResolveData) => void);
|
||||
|
||||
/**
|
||||
* Apply the plugin
|
||||
|
|
Loading…
Reference in New Issue