mirror of https://github.com/halo-dev/halo
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
parent
13e0d34ed9
commit
8525f19a16
|
@ -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,
|
||||
},
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue