Unverified Commit 16a97c87 authored by Mihira Jayasekera's avatar Mihira Jayasekera Committed by GitHub

docs: clarify how to customize next/babel presets (#11316)

* 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.
parent b4fca31d
...@@ -34,7 +34,7 @@ The `next/babel` presets includes: ...@@ -34,7 +34,7 @@ The `next/babel` presets includes:
- plugin-transform-runtime - plugin-transform-runtime
- styled-jsx - 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 ```json
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment