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 committed Jul 19, 2019
1 parent 10c42fc commit 875be5e
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 875be5e

Please sign in to comment.