-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbabel.config.js
52 lines (51 loc) · 1.6 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
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
presets: [
[
"babel-preset-expo",
// Prevents unnecessary babel transform BigInt to number for Hermes.
{ unstable_transformProfile: "hermes-stable" },
],
],
plugins: [
["@babel/plugin-proposal-decorators", { version: "legacy" }],
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-transform-flow-strip-types", // For privy (phone country selector)
["@babel/plugin-transform-class-properties", { loose: true }], // For privy
["@babel/plugin-transform-private-methods", { loose: true }], // For privy
[
"module-resolver",
{
alias: {
"fast-text-encoding": "text-encoding",
crypto: "crypto-browserify",
"react-native-webview": "react-native-webview/src/index.ts",
// Folder aliases
"@": "./",
"@components": "./components",
"@config": "./config",
"@containers": "./containers",
"@data": "./data",
"@hooks": "./hooks",
"@i18n": "./i18n",
"@queries": "./queries",
"@screens": "./screens",
"@styles": "./styles",
"@utils": "./utils",
"@theme": "./theme",
"@assets": "./assets",
"@design-system": "./design-system",
"@navigation": "./navigation",
"@features": "./features",
"@shared": "./features/shared",
"@search": "./features/search",
},
},
],
"react-native-reanimated/plugin",
],
env: {
production: {
plugins: ["transform-remove-console", "react-native-paper/babel"],
},
},
};