Skip to content

Commit 21f24b9

Browse files
committed
fix(build): avoiding creating separate chunks for vite public assets
1 parent a7d9b56 commit 21f24b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/node/build/bundle.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ export async function bundle(
121121
manualChunks(id, ctx) {
122122
// move known framework code into a stable chunk so that
123123
// custom theme changes do not invalidate hash for all pages
124-
if (id.startsWith('\0vite')) {
124+
if (
125+
id.startsWith('\0vite') ||
126+
ctx.getModuleInfo(id)?.meta['vite:asset']
127+
) {
125128
return 'framework'
126129
}
127130
if (id.includes('plugin-vue:export-helper')) {

0 commit comments

Comments
 (0)