@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.forEach((p, index) => {
198
- const matches = predicates.some((fn) => fn(p, index));
199
- if (!matches) {
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorjs/rspack",
3
- "version": "0.3.51",
3
+ "version": "0.3.54",
4
4
  "description": "Configuration logic for using Rspack in Meteor projects",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",