diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index c9ad0024cc..4b75495892 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -1289,7 +1289,7 @@ export default class Component { if (this.var_lookup.has(name) && !this.var_lookup.get(name).global) return; if (template_scope && template_scope.names.has(name)) return; - if (globals.has(name) && node.type != 'InlineComponent') return; + if (globals.has(name) && node.type !== 'InlineComponent') return; let message = `'${name}' is not defined`; if (!this.ast.instance)