From 16a97c87e7d454c7677c08eaa5dc20d54e325b6c Mon Sep 17 00:00:00 2001 From: Mihira Jayasekera Date: Tue, 24 Mar 2020 02:00:41 -0700 Subject: [PATCH] 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. --- docs/advanced-features/customizing-babel-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced-features/customizing-babel-config.md b/docs/advanced-features/customizing-babel-config.md index 8bdf25a48c..faea0981c8 100644 --- a/docs/advanced-features/customizing-babel-config.md +++ b/docs/advanced-features/customizing-babel-config.md @@ -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 { -- GitLab