diff --git a/src/utils/types.ts b/src/utils/types.ts index c30f2c5..f7ccdb6 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -12,8 +12,9 @@ export interface PatchReplacement { export interface Patch { plugin: string; - find: string, + find: string; replacement: PatchReplacement | PatchReplacement[]; + all?: boolean; } export interface PluginAuthor { diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 7f5dbf6..54034df 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -127,7 +127,7 @@ function patchPush() { patchedBy.delete(patch.plugin); } } - patches.splice(i--, 1); + if (!patch.all) patches.splice(i--, 1); } } }