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

25 lines
359 B
JavaScript

module.exports = {
env: {
development: {
plugins: [
[
'react-docgen',
{ DOC_GEN_COLLECTION_NAME: 'STORYBOOK_REACT_CLASSES' },
],
[ '@babel/plugin-syntax-jsx' ],
],
},
},
presets: [
[
'@wordpress/babel-preset-default',
{
targets: {
node: 'current',
},
},
],
[ '@babel/preset-typescript' ],
],
};