Skip to content

Commit aa5b522

Browse files
authored
Merge pull request sveltejs#2722 from getkey/window-globals
Add `window` and `document` to globals
2 parents 3d9cb3b + 4631b1b commit aa5b522

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/names.ts

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const globals = new Set([
1010
'Date',
1111
'decodeURI',
1212
'decodeURIComponent',
13+
'document',
1314
'encodeURI',
1415
'encodeURIComponent',
1516
'Infinity',
@@ -31,6 +32,7 @@ export const globals = new Set([
3132
'Set',
3233
'String',
3334
'undefined',
35+
'window',
3436
]);
3537

3638
export const reserved = new Set([

0 commit comments

Comments
 (0)