mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-15 16:42:10 +03:00
17 lines
495 B
JavaScript
17 lines
495 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'] }]);
|
|
}
|
|
|
|
// Reanimated should be last plugin added in babel
|
|
plugins.push(['react-native-reanimated/plugin']);
|
|
return {
|
|
presets: ['module:metro-react-native-babel-preset'],
|
|
sourceMaps: true,
|
|
plugins,
|
|
};
|
|
};
|