Skip to content

Commit 3b34bef

Browse files
committed
Add @tanstack/react-query to Vite vendor chunking for improved dependency management
1 parent 7fb1b32 commit 3b34bef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { defineConfig } from "vite";
32
import react from "@vitejs/plugin-react-swc";
43
import path from "path";
@@ -30,7 +29,8 @@ export default defineConfig(({ mode }) => ({
3029
if (id.includes('node_modules/react') ||
3130
id.includes('node_modules/react-dom') ||
3231
id.includes('node_modules/scheduler') ||
33-
id.includes('node_modules/use-sync-external-store')) {
32+
id.includes('node_modules/use-sync-external-store') ||
33+
id.includes('node_modules/@tanstack/react-query')) {
3434
return 'react-vendor';
3535
}
3636

0 commit comments

Comments
 (0)