fix: add define alias for window to globalThis
This commit is contained in:
parent
ae2b679700
commit
a6251ae4ea
|
@ -77,6 +77,9 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"vite": {
|
"vite": {
|
||||||
|
define: {
|
||||||
|
"window.": "globalThis.",
|
||||||
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: "{output}",
|
outDir: "{output}",
|
||||||
lib: {
|
lib: {
|
||||||
|
|
Loading…
Reference in New Issue