From 6e2eeeb88e5b2fbf1d2d571550a3139a1a0e2df4 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 17 Nov 2018 10:44:47 -0500 Subject: [PATCH] shorthand namespaces --- src/compile/Component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile/Component.ts b/src/compile/Component.ts index af16c8ebec..6d149401b9 100644 --- a/src/compile/Component.ts +++ b/src/compile/Component.ts @@ -238,7 +238,7 @@ export default class Component { this.name = this.alias(name); const meta = process_meta(this, this.ast.html.children); - this.namespace = meta.namespace; + this.namespace = namespaces[meta.namespace] || meta.namespace; if (options.customElement === true) { this.customElement = {