-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for using .babelrc in the app root. #493
Conversation
Missing |
@rauchg Oh! I forgot that :) |
@rauchg done. |
} | ||
``` | ||
|
||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, we removed support for babel
in next.config.js
right? Otherwise, we also have to make a mention of that here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We removed that. Now there's no such option.
@arunoda needs re-base 🙏 |
@rauchg done. |
Reverts #466
And allows to configure babel via the
.babelrc
file.If there's no such file, we'll add our preset
next/babel
by default. If not we'll use the.babelrc
file.Most of the time, user need to add
next/babel
as a preset.If we are taking this in, we could support ES2015 in the
config.next.js
as well.