Brian Reynolds

Results 13 comments of Brian Reynolds

I am using React Native 0.60.5, and `transform-remove-console` is not removing debugging statements at all. My `babel.config.js` looks like this: ```js module.exports = { "presets": ["module:metro-react-native-babel-preset"], "env": { production: {...

I updated to react-native 0.61.2 and modified my `babel.config.js` to return a function with the signature `function(api)` ```js module.exports = function(api) { console.log("BABELCONFIG", api.version, api.env("production"), api.env(), process.env.NODE_ENV, process.env.BABEL_ENV); return {...

For anyone that happens upon this, and has been affected by it, I've found that using the following as my `babel.config.js` works properly to include `transform-remove-console` in production builds for...