From b82ca07c458f1840c1ea27b8715874f554279e98 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 5 Dec 2018 09:10:47 -0500 Subject: [PATCH] fix prop concatenation --- src/compile/Component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compile/Component.ts b/src/compile/Component.ts index 1529bb2230..61c7ec2721 100644 --- a/src/compile/Component.ts +++ b/src/compile/Component.ts @@ -570,7 +570,7 @@ export default class Component { let current_group; walk(this.instance_script.content, { - enter(node) { + enter(node, parent) { if (/Function/.test(node.type)) { current_group = null; return this.skip(); @@ -617,7 +617,9 @@ export default class Component { } } } else { - current_group = null; + if (node.type !== 'ExportNamedDeclaration') { + if (!parent) current_group = null; + } } },