fix: add define alias for window to globalThis

This commit is contained in:
Derrick Hammer 2023-07-29 13:55:03 -04:00
parent ae2b679700
commit a6251ae4ea
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
},
},
"vite": {
define: {
"window.": "globalThis.",
},
build: {
outDir: "{output}",
lib: {