Skip to content

Commit 13a552f

Browse files
authored
feat: turn on autoCodeSplitting by default in the vite config (#19)
1 parent 71bc25b commit 13a552f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ app-ts-tw
77
app-fr
88
app-fr-tw
99
my-app
10-
.DS_Store
10+
.DS_Store
11+
12+
.vscode

templates/base/vite.config.js.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
77

88
// https://vitejs.dev/config/
99
export default defineConfig({
10-
plugins: [<% if(fileRouter) { %>TanStackRouterVite(), <% } %>viteReact()<% if (tailwind) { %>, tailwindcss()<% } %>],
10+
plugins: [<% if(fileRouter) { %>TanStackRouterVite({ autoCodeSplitting: true }), <% } %>viteReact()<% if (tailwind) { %>, tailwindcss()<% } %>],
1111
test: {
1212
globals: true,
1313
environment: "jsdom",

0 commit comments

Comments
 (0)