Next.js includes the next/babel preset to your app. You can extend the default config. To start, you only need to define a .babelrc file at the top of your app. This file is now the source of "truth". #javascript #reactjs #webdevelopment
// .babelrc
{
"presets": [
[
"next/babel",
{
"preset-env": {},
"transform-runtime": {},
"styled-jsx": {},
"class-properties": {}
}
]
],
"plugins": []
}