Skip to content

Commit b94c2ba

Browse files
committed
chore: update Rsbuild to v2.0.0-rc.3 and remove workaround
1 parent 1bef1a2 commit b94c2ba

12 files changed

Lines changed: 1686 additions & 1116 deletions

File tree

e2e/react-start/basic-rsbuild/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
},
2121
"devDependencies": {
2222
"@playwright/test": "^1.50.1",
23-
"@rsbuild/core": "2.0.0-beta.10",
24-
"@rsbuild/plugin-react": "2.0.0-alpha.3",
23+
"@rsbuild/core": "2.0.0-rc.3",
24+
"@rsbuild/plugin-react": "2.0.0-rc.3",
2525
"@tanstack/router-e2e-utils": "workspace:^",
2626
"@types/node": "^22.10.2",
2727
"@types/react": "^19.0.8",

e2e/react-start/basic-rsbuild/rsbuild.config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,4 @@ import { tanstackStart } from '@tanstack/react-start/plugin/rsbuild'
44

55
export default defineConfig({
66
plugins: [pluginReact({ splitChunks: false }), tanstackStart()],
7-
// Workaround: @rsbuild/plugin-react@2.0.0-alpha.3 accesses
8-
// config.performance.chunkSplit.strategy which is no longer defaulted
9-
// in rsbuild v2. Provide it explicitly to avoid the crash.
10-
performance: {
11-
chunkSplit: {
12-
strategy: 'split-by-experience',
13-
},
14-
} as Record<string, unknown>,
157
})

e2e/react-start/rsc-rsbuild/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
},
2424
"devDependencies": {
2525
"@playwright/test": "^1.50.1",
26-
"@rsbuild/core": "2.0.0-beta.10",
27-
"@rsbuild/plugin-react": "2.0.0-alpha.3",
26+
"@rsbuild/core": "2.0.0-rc.3",
27+
"@rsbuild/plugin-react": "2.0.0-rc.3",
2828
"@tanstack/router-e2e-utils": "workspace:^",
2929
"@types/node": "^22.10.2",
3030
"@types/react": "^19.0.8",

e2e/react-start/rsc-rsbuild/rsbuild.config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,4 @@ export default defineConfig({
1111
},
1212
}),
1313
],
14-
// Workaround: @rsbuild/plugin-react@2.0.0-alpha.3 accesses
15-
// config.performance.chunkSplit.strategy which is no longer defaulted
16-
// in rsbuild v2. Provide it explicitly to avoid the crash.
17-
performance: {
18-
chunkSplit: {
19-
strategy: 'split-by-experience',
20-
},
21-
} as Record<string, unknown>,
2214
})

e2e/solid-start/basic-rsbuild/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"devDependencies": {
2121
"@playwright/test": "^1.50.1",
22-
"@rsbuild/core": "2.0.0-beta.10",
22+
"@rsbuild/core": "2.0.0-rc.3",
2323
"@rsbuild/plugin-babel": "^1.0.5",
2424
"@rsbuild/plugin-solid": "^1.0.6",
2525
"@tanstack/router-e2e-utils": "workspace:^",

e2e/solid-start/basic-rsbuild/rsbuild.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,4 @@ export default defineConfig({
1111
pluginSolid(),
1212
tanstackStart(),
1313
],
14-
performance: {
15-
chunkSplit: {
16-
strategy: 'split-by-experience',
17-
},
18-
} as Record<string, unknown>,
1914
})

e2e/vue-start/basic-rsbuild/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"devDependencies": {
2121
"@playwright/test": "^1.50.1",
22-
"@rsbuild/core": "2.0.0-beta.10",
22+
"@rsbuild/core": "2.0.0-rc.3",
2323
"@rsbuild/plugin-babel": "^1.0.5",
2424
"@rsbuild/plugin-vue": "^1.2.2",
2525
"@rsbuild/plugin-vue-jsx": "^1.1.1",

e2e/vue-start/basic-rsbuild/rsbuild.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,4 @@ export default defineConfig({
1313
pluginVueJsx(),
1414
tanstackStart(),
1515
],
16-
performance: {
17-
chunkSplit: {
18-
strategy: 'split-by-experience',
19-
},
20-
} as Record<string, unknown>,
2116
})

packages/react-start/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@
138138
"node": ">=22.12.0"
139139
},
140140
"dependencies": {
141+
"@tanstack/react-router": "workspace:*",
141142
"@tanstack/react-start-client": "workspace:*",
142143
"@tanstack/react-start-rsc": "workspace:*",
143144
"@tanstack/react-start-server": "workspace:*",
144145
"@tanstack/router-utils": "workspace:^",
145-
"@tanstack/start-plugin-core": "workspace:*",
146-
"@tanstack/react-router": "workspace:*",
147146
"@tanstack/start-client-core": "workspace:*",
147+
"@tanstack/start-plugin-core": "workspace:*",
148148
"@tanstack/start-server-core": "workspace:*",
149149
"pathe": "^2.0.3"
150150
},
@@ -163,6 +163,7 @@
163163
}
164164
},
165165
"devDependencies": {
166+
"@rsbuild/core": "^2.0.0-rc.3",
166167
"@tanstack/intent": "^0.0.14",
167168
"@types/node": ">=20"
168169
},

packages/solid-start/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,20 @@
112112
"node": ">=22.12.0"
113113
},
114114
"dependencies": {
115+
"@tanstack/solid-router": "workspace:*",
115116
"@tanstack/solid-start-client": "workspace:*",
116117
"@tanstack/solid-start-server": "workspace:*",
117-
"@tanstack/start-plugin-core": "workspace:*",
118-
"@tanstack/solid-router": "workspace:*",
119118
"@tanstack/start-client-core": "workspace:*",
119+
"@tanstack/start-plugin-core": "workspace:*",
120120
"@tanstack/start-server-core": "workspace:*",
121121
"pathe": "^2.0.3"
122122
},
123123
"devDependencies": {
124+
"@rsbuild/core": "^2.0.0-rc.3",
124125
"@tanstack/intent": "^0.0.14",
125126
"@tanstack/router-utils": "workspace:*",
126-
"vite": "*",
127-
"@types/node": ">=20"
127+
"@types/node": ">=20",
128+
"vite": "*"
128129
},
129130
"peerDependencies": {
130131
"@rsbuild/core": "^2.0.0-0",

0 commit comments

Comments
 (0)