-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
23 lines (23 loc) · 866 Bytes
/
Copy pathbabel.config.js
File metadata and controls
23 lines (23 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: [
[
'module-resolver',
{
root: ['./app'],
extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'],
alias: {
'@': './app',
"@components": "./app/components/index", // if you are refering common index file in folder you should add "/index" end of the path
"@styles": "./app/styles/", // this is working either we add end "/" or not to the path, for safe side i have added end "/" to the path
"@navigation": "./app/navigation/",
"@hooks": "./app/hooks/index",
"@utils": "./app/utils/index",
"@configs": "./app/configs/index",
"@plugins": "./app/plugins/index",
}
}
],
'react-native-worklets/plugin', // has to be listed last
]
};