Skip to content

Commit 6188d2f

Browse files
committed
feature: set amdLoaderGlobal to globalThis in case this is not defined
1 parent 634f761 commit 6188d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/env.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*---------------------------------------------------------------------------------------------
1616
*--------------------------------------------------------------------------------------------*/
1717

18-
const _amdLoaderGlobal = this;
18+
const _amdLoaderGlobal = this ?? globalThis;
1919

2020
declare var module: {
2121
exports: any;

0 commit comments

Comments
 (0)