Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-babel-exclude

A Gatsby plugin to exclude modules from babel-loader.

Install

npm install gatsby-plugin-babel-exclude

How to use

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "gatsby-plugin-babel-exclude",
      options: {
        exclude: /someregex/,
      },
    },
  ],
};
© 2023 Gatsby, Inc.