From b328cecc04fb0ca6439516044cf760d0f9d8ebcd Mon Sep 17 00:00:00 2001 From: Conduitry Date: Fri, 15 Mar 2019 15:23:41 -0400 Subject: [PATCH] temporarily disallow `export ... from` statements (#2214) --- src/compile/Component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compile/Component.ts b/src/compile/Component.ts index 9dbfb3b41c..4f4a6b1e84 100644 --- a/src/compile/Component.ts +++ b/src/compile/Component.ts @@ -438,6 +438,12 @@ export default class Component { } if (node.type === 'ExportNamedDeclaration') { + if (node.source) { + this.error(node, { + code: `not-implemented`, + message: `A component currently cannot have an export ... from` + }); + } if (node.declaration) { if (node.declaration.type === 'VariableDeclaration') { node.declaration.declarations.forEach(declarator => {