Skip to content

Commit 01072bc

Browse files
feat: add manual chunking for vis-network-react
1 parent 32c7d87 commit 01072bc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vite.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ export default defineConfig({
99
plugins: [react(), visualizer()],
1010
build: {
1111
outDir: 'build',
12+
rollupOptions: {
13+
output: {
14+
manualChunks: {
15+
'vis-network-react': ['vis-network-react'],
16+
}
17+
}
18+
}
1219
},
1320
test: {
1421
globals: true,

0 commit comments

Comments
 (0)