From 875be5e3a023883d36dc793ded162852a8a6e7ab Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Mon, 24 Jun 2019 13:45:09 +0200 Subject: [PATCH] Better support for @wordpress/element Fragment JSX See https://github.com/WordPress/gutenberg/pull/15120 --- packages/calypso-build/babel/wordpress-element.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/calypso-build/babel/wordpress-element.js b/packages/calypso-build/babel/wordpress-element.js index bb91d08b10416..f41f50541dcce 100644 --- a/packages/calypso-build/babel/wordpress-element.js +++ b/packages/calypso-build/babel/wordpress-element.js @@ -4,6 +4,7 @@ module.exports = () => ( { '@wordpress/babel-plugin-import-jsx-pragma', { scopeVariable: 'createElement', + scopeVariableFrag: 'Fragment', source: '@wordpress/element', isDefault: false, }, @@ -12,6 +13,7 @@ module.exports = () => ( { '@babel/transform-react-jsx', { pragma: 'createElement', + pragmaFrag: 'Fragment', }, ], ],