fix(build): avoiding creating separate chunks for vite public assets

pull/4712/head
Divyansh Singh 5 months ago
parent a7d9b56477
commit 21f24b9994

@ -121,7 +121,10 @@ export async function bundle(
manualChunks(id, ctx) {
// move known framework code into a stable chunk so that
// custom theme changes do not invalidate hash for all pages
if (id.startsWith('\0vite')) {
if (
id.startsWith('\0vite') ||
ctx.getModuleInfo(id)?.meta['vite:asset']
) {
return 'framework'
}
if (id.includes('plugin-vue:export-helper')) {

Loading…
Cancel
Save