diff --git a/src/compiler/utils/names.ts b/src/compiler/utils/names.ts index 255d56a218..8afc80958f 100644 --- a/src/compiler/utils/names.ts +++ b/src/compiler/utils/names.ts @@ -24,6 +24,7 @@ export const globals = new Set([ 'global', 'globalThis', 'history', + 'HTMLElement', 'Infinity', 'InternalError', 'Intl', @@ -36,8 +37,8 @@ export const globals = new Set([ 'Math', 'NaN', 'navigator', - 'Number', 'Node', + 'Number', 'Object', 'parseFloat', 'parseInt', @@ -52,6 +53,7 @@ export const globals = new Set([ 'setInterval', 'setTimeout', 'String', + 'SVGElement', 'SyntaxError', 'TypeError', 'undefined',