diff options
Diffstat (limited to 'src/webpack/patchWebpack.ts')
-rw-r--r-- | src/webpack/patchWebpack.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 54034df..7d03d66 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -100,6 +100,7 @@ function patchPush() { for (let i = 0; i < patches.length; i++) { const patch = patches[i]; + if (patch.predicate && !patch.predicate()) continue; if (code.includes(patch.find)) { patchedBy.add(patch.plugin); // @ts-ignore we change all patch.replacement to array in plugins/index |