Skip to content

Commit 7101416

Browse files
committed
chore: add advancedChunks reproduction
1 parent 658572a commit 7101416

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

playground/class-components/vite.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,16 @@ import react from '@vitejs/plugin-react'
44
export default defineConfig({
55
server: { port: 8908 /* Should be unique */ },
66
plugins: [react()],
7+
build: {
8+
rollupOptions: {
9+
output: {
10+
advancedChunks: {
11+
groups: [
12+
{ name: 'node-modules', test: 'node_modules' },
13+
{ name: 'react', test: 'react' },
14+
],
15+
},
16+
},
17+
},
18+
},
719
})

0 commit comments

Comments
 (0)