woocommerce/plugins/woocommerce-blocks/babel.config.js

20 lines
329 B
JavaScript

module.exports = {
presets: [ '@wordpress/babel-preset-default' ],
plugins: [
[
'@babel/transform-react-jsx',
{
pragma: 'createElement',
},
],
[
'@wordpress/babel-plugin-import-jsx-pragma',
{
scopeVariable: 'createElement',
source: '@wordpress/element',
isDefault: false,
},
],
],
};