This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Babel config is not used (preset-react) #22496
Labels
bug
Issue was opened via the bug report template.
What version of Next.js are you using?
9.5.2 and 10.0.7
What version of Node.js are you using?
12.19.0
What browser are you using?
Firefox, Chromium
What operating system are you using?
Arch linux
How are you deploying your application?
docker
Describe the Bug
When setting the babel config in .babelrc.js or .babelrc the settings for optimization are not taken into consideration.
In my case I want to keep react display names when env is preproduction.
Expected Behavior
Settings are taken into considerations and display names are not removed.
To Reproduce
.babelrc.js :
Logs indicates that the right .babelrc.js is used.
The text was updated successfully, but these errors were encountered: