@rsbuild/plugin-react 0.2.3 → 0.2.5

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.js CHANGED
@@ -123,15 +123,15 @@ var applySplitChunksRule = (api, options = {
123
123
  "react",
124
124
  "react-dom",
125
125
  "scheduler",
126
- ...(0, import_shared3.isProd)() ? [] : ["react-refresh", "@rspack/plugin-react-refresh"]
126
+ ...(0, import_shared3.isProd)() ? [] : ["react-refresh", /@rspack[\\/]plugin-react-refresh/]
127
127
  ];
128
128
  }
129
129
  if (options.router) {
130
130
  extraGroups.router = [
131
131
  "react-router",
132
132
  "react-router-dom",
133
- "@remix-run/router",
134
- "history"
133
+ "history",
134
+ /@remix-run[\\/]router/
135
135
  ];
136
136
  }
137
137
  if (!Object.keys(extraGroups).length) {
package/dist/index.mjs CHANGED
@@ -109,15 +109,15 @@ var applySplitChunksRule = (api, options = {
109
109
  "react",
110
110
  "react-dom",
111
111
  "scheduler",
112
- ...isProd() ? [] : ["react-refresh", "@rspack/plugin-react-refresh"]
112
+ ...isProd() ? [] : ["react-refresh", /@rspack[\\/]plugin-react-refresh/]
113
113
  ];
114
114
  }
115
115
  if (options.router) {
116
116
  extraGroups.router = [
117
117
  "react-router",
118
118
  "react-router-dom",
119
- "@remix-run/router",
120
- "history"
119
+ "history",
120
+ /@remix-run[\\/]router/
121
121
  ];
122
122
  }
123
123
  if (!Object.keys(extraGroups).length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-react",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "React plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,14 +25,14 @@
25
25
  "@rspack/plugin-react-refresh": "0.4.3",
26
26
  "react-refresh": "^0.14.0",
27
27
  "semver": "^7.5.4",
28
- "@rsbuild/shared": "0.2.3"
28
+ "@rsbuild/shared": "0.2.5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "16.x",
32
32
  "@types/semver": "^7.5.4",
33
33
  "typescript": "^5.3.0",
34
- "@rsbuild/core": "0.2.3",
35
- "@rsbuild/test-helper": "0.2.3"
34
+ "@rsbuild/test-helper": "0.2.5",
35
+ "@rsbuild/core": "0.2.5"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public",