Skip to content

Commit de3b356

Browse files
committed
refactor: simplify build configuration by removing manual chunking for React and ReactDOM
1 parent 6f7f452 commit de3b356

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

vite.config.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,8 @@ export default defineConfig(({ mode }) => ({
99
port: 8080,
1010
},
1111
plugins: [react()],
12-
build: {
13-
rollupOptions: {
14-
output: {
15-
manualChunks(id) {
16-
if (id.includes("node_modules")) {
17-
if (id.includes("react") || id.includes("react-dom"))
18-
return "react-vendor";
19-
return "vendor";
20-
}
21-
},
22-
},
23-
},
24-
},
12+
// Use Vite defaults for chunking to avoid potential execution order issues on some hosts
13+
build: {},
2514
resolve: {
2615
alias: {
2716
"@": path.resolve(__dirname, "./src"),

0 commit comments

Comments
 (0)