Next.js: Use `babel.config.js` instead of `.babelrc`

Created on 5 May 2018  路  4Comments  路  Source: vercel/next.js

[email protected] uses babel.config.js for global config. See https://github.com/babel/babel/pull/7358.

[email protected] uses .babelrc.

> Using external babel configuration
> Location: "/app/.babelrc"

I assume this is because [email protected] uses [email protected] and not the latest yet.

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Most helpful comment

@skyrpex and for future visitors from Google search See https://babeljs.io/docs/en/next/babelconfigjs

All 4 comments

Forgot that I am working in a lerna monorepo and that babel.config.js is mostly relevant to monorepos, so .babelrc still makes sense for a basic Next project.

I just pass by to say that I struggled for this some hours xD Is babel7 documented somewhere?

@skyrpex and for future visitors from Google search See https://babeljs.io/docs/en/next/babelconfigjs

Forgot that I am working in a lerna monorepo and that babel.config.js is mostly relevant to monorepos, so .babelrc still makes sense for a basic Next project.

what difference does it make between a basic project and a lerna one?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knipferrc picture knipferrc  路  3Comments

lixiaoyan picture lixiaoyan  路  3Comments

pie6k picture pie6k  路  3Comments

irrigator picture irrigator  路  3Comments

renatorib picture renatorib  路  3Comments