Skip to content

Commit

Permalink
Babel and Metro config files
Browse files Browse the repository at this point in the history
  • Loading branch information
borisyankov committed Mar 25, 2019
1 parent 02ff4d4 commit a82f78b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// https://babeljs.io/docs/en/config-files

module.exports = {
presets: ['module:metro-react-native-babel-preset'],
env: {
production: {
plugins: ['transform-remove-console'],
Expand Down
17 changes: 17 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @format
*/

module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
};

0 comments on commit a82f78b

Please sign in to comment.