Skip to content

Commit 97714e8

Browse files
I am not shinetimneutkens
authored andcommitted
wrong position of babel config example (#1057)
1 parent c106a1d commit 97714e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,6 @@ export default class Error extends React.Component {
512512

513513
### Custom configuration
514514

515-
<p><details>
516-
<summary><b>Examples</b></summary>
517-
<ul><li><a href="./examples/with-custom-babel-config">Custom babel configuration</a></li></ul>
518-
</details></p>
519-
520515
For custom advanced behavior of Next.js, you can create a `next.config.js` in the root of your project directory (next to `pages/` and `package.json`).
521516

522517
Note: `next.config.js` is a regular Node.js module, not a JSON file. It gets used by the Next server and build phases, and not included in the browser build.
@@ -551,6 +546,11 @@ module.exports = {
551546

552547
### Customizing babel config
553548

549+
<p><details>
550+
<summary><b>Examples</b></summary>
551+
<ul><li><a href="./examples/with-custom-babel-config">Custom babel configuration</a></li></ul>
552+
</details></p>
553+
554554
In order to extend our usage of `babel`, you can simply define a `.babelrc` file at the root of your app. This file is optional.
555555

556556
If found, we're going to consider it the *source of truth*, therefore it needs to define what next needs as well, which is the `next/babel` preset.

0 commit comments

Comments
 (0)