i have create app using npx create-react-app
i want to remove console.log()
during production but i googled i found this babel-plugin-transform-remove-console
plugin configured using this link https://babeljs.io/docs/en/babel-plugin-transform-remove-console/#via-babelrc-recommended unfortunatly it does't seem workout for me. Note i create .babelrc file manually in my root dir.
npm run eject
"babel": {
"presets": [
"react-app"
],
"env": {
"production": {
"plugins": [
"transform-remove-console"
]
}
}
}
npm run build