Skip to content

Commit 613985f

Browse files
committed
fix jsx build error
1 parent 20a79e7 commit 613985f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/start/src/config/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,16 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
9191
return {
9292
appType: "custom",
9393
build: { assetsDir: "_build/assets" },
94+
optimizeDeps: {
95+
// Suppress TS errors from Vite 7 types when configuring Vite 8's Rolldown
96+
...({
97+
rolldownOptions: {
98+
transform: {
99+
jsx: "react",
100+
},
101+
},
102+
} as any),
103+
},
94104
environments: {
95105
[VITE_ENVIRONMENTS.client]: {
96106
consumer: "client",

0 commit comments

Comments
 (0)