Commit 030a1ed6 authored by Tim Neutkens's avatar Tim Neutkens Committed by Dan Zajdband

Clean up docs about next/babel (#557)

* Clean up docs about next/babel

* Add suggestions from #553
parent 31703d4c
...@@ -457,8 +457,13 @@ module.exports = { ...@@ -457,8 +457,13 @@ module.exports = {
### Customizing babel config ### Customizing babel config
In order to extend our usage of `babel`, you can simply define a `.babelrc` file in the root of your app. 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.
If found, we'll use it. Here's an example `.babelrc` file:
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.
This is designed so that you are not surprised by modifications we could make to the babel configurations.
Here's an example `.babelrc` file:
```js ```js
{ {
...@@ -469,8 +474,6 @@ If found, we'll use it. Here's an example `.babelrc` file: ...@@ -469,8 +474,6 @@ If found, we'll use it. Here's an example `.babelrc` file:
} }
``` ```
Although it's not required, you will need to add `next/babel` as a preset. That's the default preset we use for all Next.js apps.
## Production deployment ## Production deployment
To deploy, instead of running `next`, you probably want to build ahead of time. Therefore, building and starting are separate commands: To deploy, instead of running `next`, you probably want to build ahead of time. Therefore, building and starting are separate commands:
......
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