From 5625d63e46c43132676148a86739025c15fa5f2d Mon Sep 17 00:00:00 2001 From: megumin Date: Mon, 17 Oct 2022 20:18:25 +0100 Subject: Settings 2.0 (#107) Co-authored-by: Vendicated --- src/webpack/patchWebpack.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/webpack/patchWebpack.ts') 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 -- cgit