From 21f24b9994ea4807ac7e0be38408e9aaa3abe8a9 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Tue, 22 Apr 2025 16:27:55 +0530 Subject: [PATCH] fix(build): avoiding creating separate chunks for vite public assets --- src/node/build/bundle.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/node/build/bundle.ts b/src/node/build/bundle.ts index 662e9593..e7b0f066 100644 --- a/src/node/build/bundle.ts +++ b/src/node/build/bundle.ts @@ -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')) {