We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48ab95c commit b4e9ca6Copy full SHA for b4e9ca6
packages/bundler-vite/src/plugins/mainPlugin.ts
@@ -97,7 +97,20 @@ import '@vuepress/client/app'
97
// also add hash to ssr entry file, so that users could build multiple sites in a single process
98
entryFileNames: `[name].[hash].mjs`,
99
}
100
- : {}),
+ : {
101
+ manualChunks(id) {
102
+ // move known framework code into a stable chunk
103
+ if (
104
+ id.includes('plugin-vue:export-helper') ||
105
+ /node_modules\/@vuepress\/shared\//.test(id) ||
106
+ /node_modules\/vue(-router)?\//.test(id)
107
+ ) {
108
+ return 'framework'
109
+ }
110
+
111
+ return undefined
112
+ },
113
+ }),
114
},
115
preserveEntrySignatures: 'allow-extension',
116
0 commit comments