-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
44 lines (44 loc) · 1.01 KB
/
Copy pathbabel.config.js
File metadata and controls
44 lines (44 loc) · 1.01 KB
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
42
43
44
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'babel-plugin-root-import',
{
paths: [
{
rootPathPrefix: '@root',
rootPathSuffix: 'src',
},
{
rootPathPrefix: '@assets',
rootPathSuffix: 'src/assets',
},
{
rootPathPrefix: '@i18n',
rootPathSuffix: 'src/i18n',
},
{
rootPathPrefix: '@redux',
rootPathSuffix: 'src/redux',
},
{
rootPathPrefix: '@layouts',
rootPathSuffix: 'src/layouts',
},
{
rootPathPrefix: '@views',
rootPathSuffix: 'src/views',
},
{
rootPathPrefix: '@services',
rootPathSuffix: 'src/services',
},
{
rootPathPrefix: '@components',
rootPathSuffix: 'src/components',
},
],
},
],
],
}