Skip to content

Commit cc66db2

Browse files
committed
fix(tanstack-start-rsc): correct include config
1 parent 13a6751 commit cc66db2

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

rsbuild/tanstack-start-rsc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"dev": "rsbuild",
76
"build": "rsbuild build && tsc --noEmit",
7+
"dev": "rsbuild",
88
"start": "node server.js"
99
},
1010
"dependencies": {
@@ -14,6 +14,7 @@
1414
"dexie": "^4.0.10",
1515
"react": "^19.2.0",
1616
"react-dom": "^19.2.0",
17+
"srvx": "^0.11.16",
1718
"zod": "^4.4.3",
1819
"zustand": "^5.0.10"
1920
},
@@ -24,7 +25,6 @@
2425
"@types/node": "22.10.2",
2526
"@types/react": "^19.2.2",
2627
"@types/react-dom": "^19.2.2",
27-
"srvx": "^0.11.16",
2828
"tailwindcss": "^4.1.18",
2929
"typescript": "^6.0.3"
3030
}

rsbuild/tanstack-start-rsc/rsbuild.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { tanstackStart } from '@tanstack/react-start/plugin/rsbuild';
55

66
export default defineConfig({
77
source: {
8-
include: [/[\\/]node_modules[\\/]/],
8+
// RSC needs SWC to compile dependencies so directives like "use client" can be detected.
9+
// The TanStack Rsbuild plugin will add this automatically when RSC is enabled in the future.
10+
include: [{ not: /[\\/]core-js[\\/]/ }],
911
},
1012
plugins: [
1113
pluginReact(),

0 commit comments

Comments
 (0)