Skip to content

Commit

Permalink
docs: Updates file name suggestion in babel.md (#31198)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlxAlbroscheit committed May 4, 2021
1 parent af12b66 commit 3bcb6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/how-to/custom-configuration/babel.md
Expand Up @@ -14,7 +14,7 @@ If you only target newer browsers, see the [Browser Support](/docs/how-to/custom

## How to use a custom `.babelrc` file

Gatsby ships with a default `.babelrc` setup that should work for most sites. If you'd like to add custom Babel presets or plugins, you can create your own `.babelrc` at the root of your site, import [`babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby), and add additional plugins, presets, and pass options to `babel-preset-gatsby`, e.g. `targets`.
Gatsby ships with a default `.babelrc` setup that should work for most sites. If you'd like to add custom Babel presets or plugins, you can create your own `.babelrc` at the root of your site, import [`babel-preset-gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby), and add additional plugins, presets, and pass options to `babel-preset-gatsby`, e.g. `targets`. In case of using a [monorepo](https://babeljs.io/docs/en/configuration), you may want to call this file `babel.config.json`.

```shell
npm install --save-dev babel-preset-gatsby
Expand Down

0 comments on commit 3bcb6e2

Please sign in to comment.