fix(website): make manualChunks work

This commit is contained in:
Simon
2026-04-28 14:42:34 +08:00
parent 9daf914a89
commit f04fa706f7

View File

@@ -82,8 +82,10 @@ export default defineConfig(({ mode }) => ({
handler(message) handler(message)
}, },
output: { output: {
manualChunks: { manualChunks(id) {
vendor: ['react', 'react-dom', 'wouter'], if (/[\\/]node_modules[\\/](react|react-dom|wouter)([\\/]|$)/.test(id)) {
return 'vendor'
}
}, },
}, },
}, },