File tree Expand file tree Collapse file tree
rsbuild/tanstack-start-rsc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : {
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 },
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 }
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ import { tanstackStart } from '@tanstack/react-start/plugin/rsbuild';
55
66export default defineConfig ( {
77 source : {
8- include : [ / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] / ] ,
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 : / [ \\ / ] c o r e - j s [ \\ / ] / } ] ,
911 } ,
1012 plugins : [
1113 pluginReact ( ) ,
You can’t perform that action at this time.
0 commit comments