From 8525f19a16e509aa95a735dec18b09b2e3dc088c Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 13 Jun 2025 15:48:43 +0800 Subject: [PATCH] chore: remove vite build warnings about external libs (#7547) #### What type of PR is this? /area ui /kind cleanup /milestone 2.21.x #### What this PR does / why we need it: Remove vite build warnings about external libs. image #### Does this PR introduce a user-facing change? ```release-note None ``` --- ui/src/vite/library-external.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/vite/library-external.ts b/ui/src/vite/library-external.ts index 5257f86ce..485035a4e 100644 --- a/ui/src/vite/library-external.ts +++ b/ui/src/vite/library-external.ts @@ -102,8 +102,9 @@ export const setupLibraryExternal = ( injectTo: "head", tag: "script", attrs: { - src: `${isProduction ? baseUrl : "/"}${target.dest}/${target.rename}`, + src: `${baseUrl}${target.dest}/${target.rename}`, type: "text/javascript", + "vite-ignore": true, }, }; })