Skip to content

Commit 9cb7a00

Browse files
feat(rsbuild): add RSC support (#7509)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 0ac831b commit 9cb7a00

41 files changed

Lines changed: 738 additions & 261 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/mean-shirts-jog.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@tanstack/start-plugin-core': patch
3+
'@tanstack/start-server-core': patch
4+
'@tanstack/react-start-rsc': patch
5+
'@tanstack/react-start': patch
6+
'@tanstack/solid-start': patch
7+
'@tanstack/vue-start': patch
8+
---
9+
10+
feat(rsbuild): add RSC support

‎benchmarks/bundle-size/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"vue": "^3.5.16"
1818
},
1919
"devDependencies": {
20-
"@rsbuild/core": "^2.0.1",
20+
"@rsbuild/core": "^2.0.8",
2121
"@rsbuild/plugin-react": "^2.0.0",
2222
"@tanstack/router-plugin": "workspace:^",
2323
"@types/react": "^19.0.8",

‎e2e/react-router/rspack-basic-file-based/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@playwright/test": "^1.50.1",
21-
"@rsbuild/core": "^2.0.1",
21+
"@rsbuild/core": "^2.0.8",
2222
"@rsbuild/plugin-react": "^2.0.0",
2323
"@tailwindcss/postcss": "^4.2.2",
2424
"@tanstack/router-e2e-utils": "workspace:^",

‎e2e/react-router/rspack-basic-virtual-named-export-config-file-based/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@playwright/test": "^1.50.1",
21-
"@rsbuild/core": "^2.0.1",
21+
"@rsbuild/core": "^2.0.8",
2222
"@rsbuild/plugin-react": "^2.0.0",
2323
"@tailwindcss/postcss": "^4.2.2",
2424
"@tanstack/router-e2e-utils": "workspace:^",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"devDependencies": {
3333
"@playwright/test": "^1.50.1",
34-
"@rsbuild/core": "^2.0.1",
34+
"@rsbuild/core": "^2.0.8",
3535
"@rsbuild/plugin-react": "^2.0.0",
3636
"@tailwindcss/postcss": "^4.2.2",
3737
"@tailwindcss/vite": "^4.2.2",

‎e2e/react-start/basic/tests/client-output.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('SSR HTML emits IIFE client scripts and classic script preloads', async ({
1616
expect(html).toMatch(/<link[^>]+rel="preload"[^>]+as="script"/)
1717

1818
const clientEntry = html.match(
19-
/<script\b[^>]+src="([^"]*\/static\/js\/index[^"]*)"[^>]*>/,
19+
/<script\b[^>]+src="([^"]*\/assets\/js\/index[^"]*)"[^>]*>/,
2020
)
2121
expect(clientEntry).toBeTruthy()
2222
expect(clientEntry![0]).toContain('async')

‎e2e/react-start/css-inline/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"@playwright/test": "^1.50.1",
27-
"@rsbuild/core": "^2.0.0",
27+
"@rsbuild/core": "^2.0.8",
2828
"@rsbuild/plugin-react": "^2.0.0",
2929
"@tanstack/router-e2e-utils": "workspace:^",
3030
"@types/node": "^22.10.2",

‎e2e/react-start/custom-server-rsbuild/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"@playwright/test": "^1.50.1",
24-
"@rsbuild/core": "^2.0.1",
24+
"@rsbuild/core": "^2.0.8",
2525
"@rsbuild/plugin-react": "^2.0.0",
2626
"@tailwindcss/postcss": "^4.2.2",
2727
"@tanstack/router-e2e-utils": "workspace:^",

‎e2e/react-start/deferred-hydration/tests/hydration.spec.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ async function documentModulePreloadHrefs(page: Page) {
277277

278278
function isHydrateBoundaryResource(url: string) {
279279
return (
280-
url.includes('/assets/components-') || url.includes('/static/js/async/')
280+
url.includes('/assets/components-') ||
281+
url.includes('/assets/js/async/') ||
282+
url.includes('/static/js/async/')
281283
)
282284
}
283285

‎e2e/react-start/hmr/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"@playwright/test": "^1.50.1",
24-
"@rsbuild/core": "^2.0.1",
24+
"@rsbuild/core": "^2.0.8",
2525
"@rsbuild/plugin-react": "^2.0.0",
2626
"@tailwindcss/postcss": "^4.2.2",
2727
"@tailwindcss/vite": "^4.2.2",

0 commit comments

Comments
 (0)