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

20 lines
305 B
JavaScript

module.exports = function ( api ) {
api.cache( true );
return {
presets: [ '@wordpress/babel-preset-default' ],
env: {
production: {
plugins: [
[
'@wordpress/babel-plugin-makepot',
{
output: 'languages/woocommerce-admin.po',
},
],
],
},
},
};
};