Skip to content

Commit

Permalink
Better support for @wordpress/element Fragment JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal authored and ockham committed Jul 5, 2019
1 parent 5a0089a commit 3c85c2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/calypso-build/babel/wordpress-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = () => ( {
'@wordpress/babel-plugin-import-jsx-pragma',
{
scopeVariable: 'createElement',
scopeVariableFrag: 'Fragment',
source: '@wordpress/element',
isDefault: false,
},
Expand All @@ -12,6 +13,7 @@ module.exports = () => ( {
'@babel/transform-react-jsx',
{
pragma: 'createElement',
pragmaFrag: 'Fragment',
},
],
],
Expand Down

0 comments on commit 3c85c2f

Please sign in to comment.