@rsbuild/plugin-react 1.4.4 → 1.4.6

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.
package/dist/index.cjs CHANGED
@@ -109,7 +109,7 @@ function applyReactProfiler(api) {
109
109
  }
110
110
  const isDefaultPreset = (config)=>{
111
111
  let { performance, splitChunks } = config;
112
- return performance.chunkSplit && 'object' == typeof splitChunks && 0 === Object.keys(splitChunks).length ? performance.chunkSplit?.strategy === 'split-by-experience' : 'object' == typeof splitChunks && (!splitChunks.preset || 'default' === splitChunks.preset);
112
+ return performance.chunkSplit ? performance.chunkSplit?.strategy === 'split-by-experience' : 'object' == typeof splitChunks && (!splitChunks.preset || 'default' === splitChunks.preset);
113
113
  };
114
114
  function applySplitChunksRule(api, options) {
115
115
  api.modifyBundlerChain((chain, { environment, isProd })=>{
package/dist/index.js CHANGED
@@ -87,7 +87,7 @@ function applySplitChunksRule(api, options) {
87
87
  let { config } = environment;
88
88
  if (!((config)=>{
89
89
  let { performance, splitChunks } = config;
90
- return performance.chunkSplit && 'object' == typeof splitChunks && 0 === Object.keys(splitChunks).length ? performance.chunkSplit?.strategy === 'split-by-experience' : 'object' == typeof splitChunks && (!splitChunks.preset || 'default' === splitChunks.preset);
90
+ return performance.chunkSplit ? performance.chunkSplit?.strategy === 'split-by-experience' : 'object' == typeof splitChunks && (!splitChunks.preset || 'default' === splitChunks.preset);
91
91
  })(config) || 'web' !== config.output.target || !1 === options) return;
92
92
  let normalizedOptions = !0 === options ? {
93
93
  react: !0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-react",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "React plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,19 +22,25 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@rspack/plugin-react-refresh": "^1.6.0",
25
+ "@rspack/plugin-react-refresh": "^1.6.1",
26
26
  "react-refresh": "^0.18.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@rslib/core": "0.19.3",
30
- "@types/node": "^24.10.9",
29
+ "@rsbuild/core-v1": "npm:@rsbuild/core@^1.7.3",
30
+ "@rslib/core": "0.20.0",
31
+ "@types/node": "^24.12.0",
31
32
  "typescript": "^5.9.3",
32
- "@rsbuild/core": "2.0.0-beta.0",
33
- "@scripts/test-helper": "1.0.1"
33
+ "@rsbuild/core": "2.0.0-beta.8",
34
+ "@scripts/test-helper": "1.0.0"
34
35
  },
35
36
  "peerDependencies": {
36
37
  "@rsbuild/core": "^1.0.0 || ^2.0.0-0"
37
38
  },
39
+ "peerDependenciesMeta": {
40
+ "@rsbuild/core": {
41
+ "optional": true
42
+ }
43
+ },
38
44
  "publishConfig": {
39
45
  "access": "public",
40
46
  "registry": "https://registry.npmjs.org/"