do I need setup babel and webpack manually in 2021 in react project

Viewed 151

I have created a new project with npx create-react-app command, does this command automatically install and configure babel and webpack for me or do I have to do it manually. I have read an instruction on this link https://create-react-app.dev/docs/available-scripts/. I think what it is saying that I don't need to configure babel or webpack, npm run build command does all for me.It would be super useful if you explain in a beginner-friendly way. Thank you for your answers.

1 Answers

Don't need. Because Babel and Webpack are already dependent on React-Scripts, these dependencies are installed by default

create-react-app provides some default configurations.You can use the following commands to manipulate and display the configuration

npm run eject
Related