forked from pass-culture/pass-culture-app-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
31 lines (31 loc) · 902 Bytes
/
babel.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
'macros',
[
require.resolve('babel-plugin-module-resolver'),
{
cwd: 'babelrc',
extensions: ['.js', '.jsx', '.ts', '.tsx', '.js', '.ios.js', '.android.js'],
root: ['./src/'],
alias: {
api: './src/api',
features: './src/features',
fixtures: './src/fixtures',
libs: './src/libs',
shared: './src/shared',
theme: './src/theme',
types: './src/types',
tests: './src/tests',
ui: './src/ui',
web: './src/web',
__mocks__: './__mocks__',
},
},
],
"@babel/plugin-transform-numeric-separator",
'@babel/plugin-proposal-unicode-property-regex',
'@babel/plugin-proposal-export-namespace-from',
'react-native-reanimated/plugin',
],
}