Skip to content

Instantly share code, notes, and snippets.

@Falconiere
Created March 7, 2020 20:53
Show Gist options
  • Save Falconiere/fe7f78b32ab7ae90c97c2d33f95c9129 to your computer and use it in GitHub Desktop.
Save Falconiere/fe7f78b32ab7ae90c97c2d33f95c9129 to your computer and use it in GitHub Desktop.
This is my config babel for react-native app (I'm using it in my spotify clone)
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
alias: {
components: './src/components',
assets: './src/assets',
themes: './src/themes',
views: './src/views',
services: './src/services',
config: './src/config'
}
}
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment