mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-22 23:28:56 +03:00
14 lines
388 B
JavaScript
14 lines
388 B
JavaScript
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,
|
|
};
|
|
};
|