ts-transform-inferno
ts-transform-inferno copied to clipboard
Usage of multiple spread operators
Using multiple spread operators to give props to a component does not work. If there is multiple spread operators, only the last one is taken into account.
Example:
<FooBar><BarFoo {...magics} {...foobars} {...props}/></FooBar>
transpiles to
createComponentVNode(2, FooBar, { "children": normalizeProps(createComponentVNode(2, BarFoo, __assign({}, props))) });
when expected output would be
createComponentVNode(2, FooBar, { "children": normalizeProps(createComponentVNode(2, BarFoo, __assign({}, magics, foobars, props))) });