-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
33 lines (31 loc) · 888 Bytes
/
Copy pathbabel.config.js
File metadata and controls
33 lines (31 loc) · 888 Bytes
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
module.exports = function (api) {
api.cache(true);
// Base plugins required in every environment
const plugins = [
[
'module-resolver',
{
root: ['./'],
alias: {
'@': './src',
'@components': './src/components',
'@contexts': './src/contexts',
'@constants': './src/constants',
'@hooks': './src/hooks',
'@models': './src/models',
'@navigation': './src/navigation',
'@screens': './src/screens',
'@services': './src/services',
'@utils': './src/utils',
},
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
},
],
'@babel/plugin-transform-export-namespace-from',
'react-native-reanimated/plugin', // Necessario per Reanimated (DEVE essere ultimo)
];
return {
presets: ['babel-preset-expo'],
plugins,
};
};