properly handle shorthand JSX attributes in optimisation.react.inlineElements transformer - fixes #1309

This commit is contained in:
Sebastian McKenzie
2015-04-21 16:14:36 +01:00
parent b6498103db
commit f6278e43ce
3 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
"use strict";
({
type: Foo,
ref: null,
props: babelHelpers.defaultProps(Foo.defaultProps, {
bar: true
}),
key: null
});