Skip to content

Commit 730dc54

Browse files
committed
fix: swap vite build with tsc
1 parent 1e99271 commit 730dc54

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "tsc -b && vite build",
8+
"build": "vite build && tsc -b",
99
"lint": "biome check --write",
1010
"preview": "vite preview",
1111
"prepare": "husky"

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export default defineConfig({
1111
tanstackRouter({
1212
routesDirectory: "./src/pages",
1313
generatedRouteTree: "./src/routeTree.gen.ts",
14+
target: "react",
15+
autoCodeSplitting: true,
1416
}),
1517
react(),
1618
tailwindcss(),

0 commit comments

Comments
 (0)