Simple Gatsby plugin that helps extend the .babelrc
npm install gatsby-plugin-babel
Configure options in your gatsby-config.js
file.
plugins: [
{
resolve: 'gatsby-plugin-babel',
options: {
plugins: ['transform-react-jsx'],
ignore: ['foo.js', 'bar/**/*.js'],
},
},
];