mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix(cli): add viteReact plugin in tanstack start template
This commit is contained in:
@@ -8,28 +8,23 @@
|
||||
"skipLibCheck": true,
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
{{#if (eq orm "prisma")}},
|
||||
"prisma": ["node_modules/prisma"]
|
||||
{{/if}}
|
||||
"@/*": ["./src/*"]{{#if (eq orm "prisma")}},
|
||||
"prisma": ["node_modules/prisma"]{{/if}}
|
||||
},
|
||||
"outDir": "./dist",
|
||||
"types": [
|
||||
{{#if (eq runtime "node")}}
|
||||
"node"
|
||||
"node"
|
||||
{{else if (eq runtime "bun")}}
|
||||
"bun"
|
||||
"bun"
|
||||
{{else if (eq runtime "workers")}}
|
||||
"@cloudflare/workers-types",
|
||||
"node"
|
||||
"node"
|
||||
{{else}}
|
||||
"node",
|
||||
"bun"
|
||||
"node",
|
||||
"bun"
|
||||
{{/if}}
|
||||
],
|
||||
{{#unless (or (eq backend "convex") (eq backend "none"))}}
|
||||
"composite": true,
|
||||
{{/unless}}
|
||||
]{{#unless (or (eq backend "convex") (eq backend "none"))}},
|
||||
"composite": true{{/unless}},
|
||||
"jsx": "react-jsx"{{#if (eq backend "hono")}},
|
||||
"jsxImportSource": "hono/jsx"{{/if}}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
"@testing-library/react": "^16.2.0",
|
||||
"@types/react": "^19.0.12",
|
||||
"@types/react-dom": "^19.0.4",
|
||||
"@vitejs/plugin-react": "^4.5.2",
|
||||
"@vitejs/plugin-react": "^5.0.1",
|
||||
"jsdom": "^26.0.0",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^7.0.2",
|
||||
|
||||
@@ -2,7 +2,13 @@ import { defineConfig } from "vite";
|
||||
import tsconfigPaths from "vite-tsconfig-paths";
|
||||
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import viteReact from "@vitejs/plugin-react";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tsconfigPaths(), tailwindcss(), tanstackStart({})],
|
||||
plugins: [
|
||||
tsconfigPaths(),
|
||||
tailwindcss(),
|
||||
tanstackStart({ customViteReactPlugin: true }),
|
||||
viteReact(),
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user