Merge pull request #3195 from babel/hzoo-patch-1-1
validate: allow JSXText node in JSXElement children property
This commit is contained in:
commit
e5e085a567
@ -41,7 +41,7 @@ defineType("JSXElement", {
|
||||
children: {
|
||||
validate: chain(
|
||||
assertValueType("array"),
|
||||
assertEach(assertNodeType("StringLiteral", "JSXExpressionContainer", "JSXElement"))
|
||||
assertEach(assertNodeType("JSXText", "JSXExpressionContainer", "JSXElement"))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user