Skip to content

Commit

Permalink
docs: clarify how to customize next/babel presets (#11316)
Browse files Browse the repository at this point in the history
* docs: clarify how to customize next/babel presets

The current language confused me, because it says the presets/plugins should not be added to .babelrc, but then they are "added" (in a sense) to .babelrc in the subsequent example. Clarify that they shouldn't be added _as their own presets/plugins_.

* docs: further clarify custom next/babel config

Even more explicit.
  • Loading branch information
tinymachine committed Mar 24, 2020
1 parent b4fca31 commit 16a97c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced-features/customizing-babel-config.md
Expand Up @@ -34,7 +34,7 @@ The `next/babel` presets includes:
- plugin-transform-runtime
- styled-jsx

These presets/plugins **should not** be added to your custom `.babelrc`. Instead, you can configure them on the `next/babel` preset, like so:
To configure these presets/plugins, **do not** add them to `presets` or `plugins` in your custom `.babelrc`. Instead, configure them on the `next/babel` preset, like so:

```json
{
Expand Down

0 comments on commit 16a97c8

Please sign in to comment.