mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-11 13:02:49 +00:00
1
This commit is contained in:
parent
41933b9209
commit
50898b291f
6
packages/vite-plugin/dist/index.js
vendored
6
packages/vite-plugin/dist/index.js
vendored
@ -1583,8 +1583,10 @@ if (typeof window !== 'undefined') {
|
||||
for (let j in SAFE_CHAR_MAP) {
|
||||
k = k.replaceAll(j, SAFE_CHAR_MAP[j]);
|
||||
}
|
||||
d[k] = d[i];
|
||||
delete d[i];
|
||||
if (k != i) {
|
||||
d[k] = d[i];
|
||||
delete d[i];
|
||||
}
|
||||
}
|
||||
return {
|
||||
code: JSON.stringify(d),
|
||||
|
||||
@ -41,8 +41,10 @@ export function codePlugin(): Plugin[] {
|
||||
k = k.replaceAll(j, SAFE_CHAR_MAP[j]);
|
||||
}
|
||||
|
||||
d[k] = d[i];
|
||||
delete d[i];
|
||||
if (k != i) {
|
||||
d[k] = d[i];
|
||||
delete d[i];
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user