ecency-mobile/babel.config.js

14 lines
388 B
JavaScript
Raw Normal View History

module.exports = (api) => {
const babelEnv = api.env();
const plugins = [];
//change to 'production' to check if this is working in 'development' mode
if (babelEnv !== 'development') {
plugins.push(['transform-remove-console', { exclude: ['error', 'warn'] }]);
}
return {
presets: ['module:metro-react-native-babel-preset'],
sourceMaps: true,
plugins,
};
2019-05-29 14:32:35 +03:00
};