From f86d749077f438f5aafd7cbaab2e96d1e326d7ba Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 19 Dec 2024 12:51:31 +0000 Subject: [PATCH] fix(vite): ignore optimising `#app-manifest` --- packages/vite/src/client.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/vite/src/client.ts b/packages/vite/src/client.ts index f26303b2ee..ef4204ba40 100644 --- a/packages/vite/src/client.ts +++ b/packages/vite/src/client.ts @@ -103,6 +103,9 @@ export async function buildClient (ctx: ViteBuildContext) { 'ufo', 'unctx', 'unenv', + + // these will never be imported on the client + '#app-manifest', ], }, resolve: {