@modern-js/plugin-devtools 2.55.0 → 2.56.0

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.
@@ -166,9 +166,9 @@ const pluginState = {
166
166
  transformed: import_lodash.default.cloneDeep(builderApi.getNormalizedConfig())
167
167
  };
168
168
  });
169
- const expectBundlerNum = import_lodash.default.castArray(builderApi.context.targets).length;
170
169
  const bundlerConfigs = [];
171
170
  const handleBundlerConfig = (config) => {
171
+ const expectBundlerNum = Object.keys(builderApi.getNormalizedConfig().environments).length;
172
172
  bundlerConfigs.push(config);
173
173
  if (bundlerConfigs.length >= expectBundlerNum) {
174
174
  api.vars.state.bundler.configs.resolved = import_lodash.default.cloneDeep(bundlerConfigs);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.55.0",
18
+ "version": "2.56.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/index.d.ts",
21
21
  "main": "./dist/index.js",
@@ -56,9 +56,9 @@
56
56
  "ws": "^8.13.0",
57
57
  "hookable": "^5.5.3",
58
58
  "react-devtools-inline": "^4.28.5",
59
- "@modern-js/devtools-kit": "2.55.0",
60
- "@modern-js/devtools-client": "2.55.0",
61
- "@modern-js/utils": "2.55.0"
59
+ "@modern-js/devtools-kit": "2.56.0",
60
+ "@modern-js/utils": "2.56.0",
61
+ "@modern-js/devtools-client": "2.56.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@swc/helpers": "0.5.3",
@@ -67,18 +67,18 @@
67
67
  "@types/react-devtools-inline": "^4.24.8",
68
68
  "type-fest": "^4.1.0",
69
69
  "typescript": "^5",
70
- "@rsbuild/core": "0.7.10",
71
- "@modern-js/core": "2.55.0",
72
- "@modern-js/module-tools": "2.55.0",
73
- "@modern-js/app-tools": "2.55.0",
74
- "@modern-js/runtime": "2.55.0",
75
- "@modern-js/types": "2.55.0",
76
- "@modern-js/server-core": "2.55.0",
77
- "@modern-js/uni-builder": "2.55.0",
78
- "@scripts/build": "2.55.0"
70
+ "@rsbuild/core": "1.0.1-beta.3",
71
+ "@modern-js/app-tools": "2.56.0",
72
+ "@modern-js/core": "2.56.0",
73
+ "@modern-js/module-tools": "2.56.0",
74
+ "@modern-js/uni-builder": "2.56.0",
75
+ "@modern-js/server-core": "2.56.0",
76
+ "@modern-js/runtime": "2.56.0",
77
+ "@modern-js/types": "2.56.0",
78
+ "@scripts/build": "2.56.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@modern-js/runtime": "^2.55.0"
81
+ "@modern-js/runtime": "^2.56.0"
82
82
  },
83
83
  "peerDependenciesMeta": {
84
84
  "@modern-js/runtime": {