-
Notifications
You must be signed in to change notification settings - Fork 2
/
babel.config.js
41 lines (40 loc) · 1.27 KB
/
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
32
33
34
35
36
37
38
39
40
41
const path = require("path");
module.exports = function (api) {
api.cache(true);
return {
presets: ["babel-preset-expo"],
plugins: [
[
"module-resolver",
{
root: [path.resolve("./")],
alias: {
"#components": [path.resolve("./src/components/index")],
"#styles": [path.resolve("./src/styles/index")],
"#blocks": [path.resolve("./src/blocks/index")],
"#services": [path.resolve("./src/services/index")],
"#hooks": [path.resolve("./src/hooks/index")],
"#screens": [path.resolve("./src/screens/index")],
"#utils": [path.resolve("./src/utils/index")],
"#navigation": [path.resolve("./src/navigation/index")],
"#backdrops": [path.resolve("./src/backdrops/index")],
"#assets": [path.resolve("./src/assets/index")],
"#modals": [path.resolve("./src/modals/index")],
},
extensions: [
".ios.js",
".android.js",
".js",
".jsx",
".json",
".tsx",
".ts",
".native.js",
],
},
],
"@babel/plugin-proposal-export-namespace-from",
"react-native-reanimated/plugin",
],
};
};