-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbabel.base.js
41 lines (41 loc) · 1.55 KB
/
babel.base.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
32
33
34
35
36
37
38
39
40
41
// eslint-disable-next-line
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'module-resolver',
{
root: './',
extensions: [
'.ios.ts',
'.android.ts',
'.ts',
'.ios.tsx',
'.android.tsx',
'.tsx',
'.jsx',
'.js',
'.json',
'jpg',
'jpeg',
],
alias: {
'@react-native-ama/core/src': `${__dirname}/packages/core/src`,
'@react-native-ama/core': `${__dirname}/packages/core/src`,
'@react-native-ama/internal/src': `${__dirname}/packages/internal/src`,
'@react-native-ama/internal': `${__dirname}/packages/internal/src`,
'@react-native-ama/animations/src': `${__dirname}/packages/animations/src`,
'@react-native-ama/animations': `${__dirname}/packages/animations/src`,
'@react-native-ama/extras/src': `${__dirname}/packages/extras/src`,
'@react-native-ama/extras': `${__dirname}/packages/extras/src`,
'@react-native-ama/lists/src': `${__dirname}/packages/lists/src`,
'@react-native-ama/lists': `${__dirname}/packages/lists/src`,
'@react-native-ama/react-native/src': `${__dirname}/packages/react-native/src`,
'@react-native-ama/react-native': `${__dirname}/packages/react-native/src`,
'@react-native-ama/internal/src': `${__dirname}/packages/internal/src`,
'@react-native-ama/internal': `${__dirname}/packages/internal/src`,
},
},
],
],
};