Skip to content

Instantly share code, notes, and snippets.

@RajeshBatth
Last active January 13, 2019 09:44
Show Gist options
  • Save RajeshBatth/53ff38f32053d955851572af8da2a71a to your computer and use it in GitHub Desktop.
Save RajeshBatth/53ff38f32053d955851572af8da2a71a to your computer and use it in GitHub Desktop.
module.exports = {
presets: [
'react-native',
'@babel/preset-env'
],
plugins: [
['@babel/plugin-proposal-decorators', {legacy: true}],
'@babel/plugin-transform-runtime',
['@babel/plugin-proposal-class-properties', {loose: true}],
'dynamic-import-webpack',
'react-native-web'
],
env: {
production: {
plugins: [
'transform-remove-console',
['@babel/plugin-proposal-decorators', {legacy: true}]
]
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment