@rsbuild/plugin-react 1.0.6 → 1.0.7

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
@@ -221,8 +221,9 @@ const applySplitChunksRule = (api, options = {
221
221
  chain.optimization.splitChunks({
222
222
  ...currentConfig,
223
223
  cacheGroups: {
224
- ...currentConfig.cacheGroups,
225
- ...extraGroups
224
+ // user defined cache groups take precedence
225
+ ...extraGroups,
226
+ ...currentConfig.cacheGroups
226
227
  }
227
228
  });
228
229
  });
package/dist/index.js CHANGED
@@ -104,8 +104,9 @@ const applySplitChunksRule = (api, options = {
104
104
  chain.optimization.splitChunks({
105
105
  ...currentConfig,
106
106
  cacheGroups: {
107
- ...currentConfig.cacheGroups,
108
- ...extraGroups
107
+ // user defined cache groups take precedence
108
+ ...extraGroups,
109
+ ...currentConfig.cacheGroups
109
110
  }
110
111
  });
111
112
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-react",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "React plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "devDependencies": {
29
29
  "@types/node": "18.x",
30
30
  "typescript": "^5.6.3",
31
- "@rsbuild/core": "1.0.19",
31
+ "@rsbuild/core": "1.1.0",
32
32
  "@scripts/test-helper": "1.0.1"
33
33
  },
34
34
  "peerDependencies": {