aboutsummaryrefslogtreecommitdiff
path: root/src/webpack/patchWebpack.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpack/patchWebpack.ts')
-rw-r--r--src/webpack/patchWebpack.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts
index 273a062..8f11b63 100644
--- a/src/webpack/patchWebpack.ts
+++ b/src/webpack/patchWebpack.ts
@@ -137,6 +137,7 @@ function patchPush() {
// @ts-ignore we change all patch.replacement to array in plugins/index
for (const replacement of patch.replacement) {
+ if (replacement.predicate && !replacement.predicate()) continue;
const lastMod = mod;
const lastCode = code;