From e08654a9fa2d7301bce1a13e6cc2bcbc4937dd69 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 2 Jul 2026 16:46:26 +0200 Subject: [PATCH] Fix externals detection Icons and local files should never be treated as external. --- src/vite/config/build.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/vite/config/build.ts b/src/vite/config/build.ts index 92a4899..08ccec5 100644 --- a/src/vite/config/build.ts +++ b/src/vite/config/build.ts @@ -31,7 +31,14 @@ export default function ({ entry, overrides }: BuildConfigOptions): UserConfig[' entryFileNames: '[name].cjs.js', }, ], - external: (id: string) => !id.startsWith('.') && !isAbsolute(id), + external(id: string) { + return ( + !id.startsWith('~icons/') && + !id.startsWith('@/') && + !id.startsWith('.') && + !isAbsolute(id) + ); + }, }, ...overrides, };