forked from lnreader/lnreader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
48 lines (47 loc) · 1.41 KB
/
Copy pathbabel.config.js
File metadata and controls
48 lines (47 loc) · 1.41 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
45
46
47
48
const ReactCompilerConfig = {
target: '19',
};
export default function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
'module:@babel/plugin-transform-export-namespace-from',
['babel-plugin-react-compiler', ReactCompilerConfig],
[
'module-resolver',
{
alias: {
'@components': './src/components',
'@database': './src/database',
'@hooks': './src/hooks',
'@screens': './src/screens',
'@i18n': './src/i18n',
'@services': './src/services',
'@plugins': './src/plugins',
'@utils': './src/utils',
'@theme': './src/theme',
'@navigators': './src/navigators',
'@api': './src/api',
'@type': './src/type',
'@specs': './specs',
'@test-utils': './test/test-utils',
'@env': './src/generated/build-info',
'@modules/nitro-epub': './modules/nitro-epub/src/index',
'@modules/nitro-tts': './modules/nitro-tts/src/index',
'@modules': './modules',
'react-native-vector-icons/MaterialCommunityIcons':
'@react-native-vector-icons/material-design-icons',
},
},
],
'react-native-worklets/plugin',
[
'inline-import',
{
extensions: ['.sql'],
},
],
],
};
}