-
Notifications
You must be signed in to change notification settings - Fork 16
/
babel.config.js
36 lines (31 loc) · 1.06 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
module.exports = function(api) {
console.log('BABEL ROOT');
const suffix = process.env.IS_NEXT ? '-website' : '';
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
"module-resolver",
{
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
root: ['.'],
alias: {
"@app": ["./app/src"],
"@app4": ["./app4/src"],
"@nex/data/hooks": ["./data/src/index-hooks.ts"],
"@nex/data/api": ["./data/src/index-api.ts"],
"@nex/data": ["./data/src/index.ts"],
"@nex/data4": ["./data4/src/index.ts"],
"@nex/dataset": [process.env.APP === 'aoe2' ? `./dataset2/src/index${suffix}.ts` : `./dataset4/src/index${suffix}.ts`],
"@nex/app/view": [process.env.APP === 'aoe2' ? "./app/src/index-view.ts" : "./app4/src/index-view.ts"],
}
}
],
'@babel/plugin-proposal-export-namespace-from',
'react-native-reanimated/plugin',
"nativewind/babel",
]
};
};
// module.exports = {};