diff --git a/src/compiler/utils/names.ts b/src/compiler/utils/names.ts index e091edb19eba..c642ed11e13a 100644 --- a/src/compiler/utils/names.ts +++ b/src/compiler/utils/names.ts @@ -26,6 +26,7 @@ export const globals = new Set([ 'global', 'globalThis', 'history', + 'HTMLCanvasElement', 'HTMLElement', 'Infinity', 'InternalError',