Skip to content

Commit 3bcb6e2

Browse files
authored
docs: Updates file name suggestion in babel.md (#31198)
1 parent af12b66 commit 3bcb6e2

File tree

1 file changed

+1
-1
lines changed
  • docs/docs/how-to/custom-configuration

1 file changed

+1
-1
lines changed

docs/docs/how-to/custom-configuration/babel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you only target newer browsers, see the [Browser Support](/docs/how-to/custom
1414

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

17-
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`.
17+
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`.
1818

1919
```shell
2020
npm install --save-dev babel-preset-gatsby

0 commit comments

Comments
 (0)