diff --git a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts index 9c1218079d..356e5c31bf 100644 --- a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts +++ b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts @@ -152,21 +152,17 @@ export default class InlineComponentWrapper extends Wrapper { }); } - if (uses_spread) { - attribute_object = initial_props; - } else { - attribute_object = { - type: 'ObjectExpression', - properties: this.node.attributes.map(attr => { - return { - type: 'Property', - kind: 'init', - key: { type: 'Identifier', name: attr.name }, - value: attr.get_value(block) - } - }).concat(initial_props.properties) - } as Expression; - } + attribute_object = { + type: 'ObjectExpression', + properties: this.node.attributes.map(attr => { + return { + type: 'Property', + kind: 'init', + key: { type: 'Identifier', name: attr.name }, + value: attr.get_value(block) + } + }).concat(initial_props.properties) + } as Expression; component_opts.properties.push({ type: 'Property',