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.

<img width="1051" alt="image" src="https://github.com/user-attachments/assets/ae3e2471-37d5-481b-9a5f-281a6bfc3094" />

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/7551/head
Ryan Wang 2025-06-13 15:48:43 +08:00 committed by GitHub
parent 13e0d34ed9
commit 8525f19a16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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,
},
};
})