Skip to content

Commit 707a010

Browse files
committed
fix jsx build error
1 parent 27a39b4 commit 707a010

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
@@ -80,6 +80,16 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
8080
return {
8181
appType: "custom",
8282
build: { assetsDir: "_build/assets" },
83+
optimizeDeps: {
84+
// Suppress TS errors from Vite 7 types when configuring Vite 8's Rolldown
85+
...({
86+
rolldownOptions: {
87+
transform: {
88+
jsx: "react",
89+
},
90+
},
91+
} as any),
92+
},
8393
environments: {
8494
[VITE_ENVIRONMENTS.client]: {
8595
consumer: "client",

0 commit comments

Comments
 (0)