From 870645be9e2614692f9d9bc5305814641b3889e4 Mon Sep 17 00:00:00 2001 From: Mihira Jayasekera Date: Mon, 23 Mar 2020 23:00:45 -0700 Subject: [PATCH 1/2] 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/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 8bdf25a48cd971d..28982e29de78ad4 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 as their own presets or plugins in your custom `.babelrc`. Instead, configure them on the `next/babel` preset, like so: ```json { From 4aedc1e7dea66b790ae7a638837b4bd2c1510c8f Mon Sep 17 00:00:00 2001 From: Mihira Jayasekera Date: Mon, 23 Mar 2020 23:05:18 -0700 Subject: [PATCH 2/2] 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 28982e29de78ad4..faea0981c88ace7 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 -To configure these presets/plugins, **do not** add them as their own presets or plugins in your custom `.babelrc`. Instead, 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 {