Skip to content

Commit 49c514f

Browse files
fix: change globalObject to globalThis (#579)
In ESM `this` is undefined at the top level. Instead to access the global object you must use `globalThis`. Co-authored-by: Kagami Sascha Rosylight <[email protected]>
1 parent b62d2cf commit 49c514f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: webpack.config.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
path: path.resolve(__dirname, "dist"),
88
library: "WebIDL2",
99
libraryTarget: "umd",
10-
globalObject: "this"
10+
globalObject: "globalThis"
1111
},
1212
mode: "production",
1313
devtool: "source-map",

0 commit comments

Comments
 (0)