properly handle shorthand JSX attributes in optimisation.react.inlineElements transformer - fixes #1309
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<Foo bar />;
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
({
|
||||
type: Foo,
|
||||
ref: null,
|
||||
props: babelHelpers.defaultProps(Foo.defaultProps, {
|
||||
bar: true
|
||||
}),
|
||||
key: null
|
||||
});
|
||||
Reference in New Issue
Block a user