-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathbabel.config.js
More file actions
24 lines (24 loc) · 825 Bytes
/
babel.config.js
File metadata and controls
24 lines (24 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
'@babel/plugin-transform-modules-commonjs',
['@babel/plugin-transform-private-methods', { loose: true }],
[
'module-resolver',
{
extensions: ['.js', '.ts', '.tsx'],
alias: {
react: './node_modules/react',
'react-native': './node_modules/react-native-macos',
'react-native-reanimated': './node_modules/react-native-reanimated',
'react-native-gesture-handler/ReanimatedSwipeable':
'../src/components/ReanimatedSwipeable',
'react-native-gesture-handler/Swipeable':
'../src/components/Swipeable',
'react-native-gesture-handler': '../src/index',
},
},
],
'react-native-reanimated/plugin',
],
};