This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
babel.config.js
50 lines (49 loc) · 1.75 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
const path = require('path');
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
'react-native-reanimated/plugin',
process.env.NODE_ENV !== 'production'
? [
'module-resolver',
{
alias: {
// For development, we want to alias the library to the source
['@gluestack-style/react']: path.join(
__dirname,
'../../packages/react/src'
),
['@gluestack-style/legend-motion-animation-driver']: path.join(
__dirname,
'../../packages/animation-legend-motion-driver/src'
),
['@gluestack-style/moti-driver']: path.join(
__dirname,
'../../packages/animation-moti-animation-driver/src'
),
['@gluestack-style/animation-resolver']: path.join(
__dirname,
'../../packages/animation-resolver/src'
),
// ['@dank-style/react']: path.join(
// __dirname,
// '../../packages/react/src'
// ),
// ['@gluestack-style/animation-plugin']: path.join(
// __dirname,
// '../../packages/animation-plugin/src'
// ),
// ['@dank-style/animation-plugin']: path.join(
// __dirname,
// '../../packages/animation-plugin/src'
// ),
},
},
]
: ['babel-plugin-react-docgen-typescript', { exclude: 'node_modules' }],
'@babel/plugin-transform-modules-commonjs',
],
};
};