@meteorjs/rspack 0.3.51 → 0.3.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -194,14 +194,11 @@ function disablePlugins(config, matchers) {
|
|
|
194
194
|
);
|
|
195
195
|
});
|
|
196
196
|
|
|
197
|
-
plugins.
|
|
198
|
-
const matches = predicates.some(
|
|
199
|
-
|
|
200
|
-
kept.push(p);
|
|
201
|
-
}
|
|
197
|
+
config.plugins = plugins.filter((p, index) => {
|
|
198
|
+
const matches = predicates.some(fn => fn(p, index));
|
|
199
|
+
return !matches;
|
|
202
200
|
});
|
|
203
201
|
|
|
204
|
-
config.plugins = kept;
|
|
205
202
|
return config;
|
|
206
203
|
}
|
|
207
204
|
|