Babel Config for Gatsby Sites

Babel config for Gatsby sites. Ships with Typescript and Babel Plugin Module Resolver


module.exports = {
  presets: [
    "babel-preset-gatsby",
    "@babel/preset-react",
    "@babel/preset-typescript",
  ],
  plugins: [
    [
      "module-resolver",
      {
        root: ["."],
        alias: {
          "~": "./src",
        },
      },
    ],
  ],
}