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": {
|
||||
define: {
|
||||
"window.": "globalThis.",
|
||||
},
|
||||
build: {
|
||||
outDir: "{output}",
|
||||
lib: {
|
||||
|
|
Loading…
Reference in New Issue