Revert babel-helper-builder-react-jsx change from #4988
This commit is contained in:
parent
77d9e3e5c4
commit
dbc07220ae
@ -17,10 +17,6 @@ export default function (opts) {
|
|||||||
throw path.buildCodeFrameError("Namespace tags are not supported. ReactJSX is not XML.");
|
throw path.buildCodeFrameError("Namespace tags are not supported. ReactJSX is not XML.");
|
||||||
};
|
};
|
||||||
|
|
||||||
visitor.JSXSpreadChild = function(path) {
|
|
||||||
throw path.buildCodeFrameError("Spread children are not supported.");
|
|
||||||
};
|
|
||||||
|
|
||||||
visitor.JSXElement = {
|
visitor.JSXElement = {
|
||||||
exit(path, file) {
|
exit(path, file) {
|
||||||
let callExpr = buildElementCall(path.get("openingElement"), file);
|
let callExpr = buildElementCall(path.get("openingElement"), file);
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
<div>{...children}</div>;
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"throws": "Spread children are not supported."
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user