Skip to content

Commit

Permalink
Add babel override for o2-blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal authored and dmsnell committed Aug 17, 2020
1 parent 924fba1 commit 4591a65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ const isBrowser = process.env.BROWSERSLIST_ENV !== 'server';
const babelConfig = {
presets: [ '@automattic/calypso-build/babel/default' ],
plugins: [ [ '@automattic/transform-wpcalypso-async', { async: isBrowser } ] ],
overrides: [
{
test: [ './apps/o2-blocks/src' ],
plugins: [ '@wordpress/import-jsx-pragma', '@babel/transform-react-jsx' ],
},
],
env: {
production: {
plugins: [ 'babel-plugin-transform-react-remove-prop-types' ],
Expand Down

0 comments on commit 4591a65

Please sign in to comment.