forked from amogos/react-native-web-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-overrides.js
23 lines (22 loc) · 974 Bytes
/
config-overrides.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const path = require('path');
const {override, addBabelPlugins, babelInclude} = require('customize-cra');
module.exports = override(
...addBabelPlugins(
'relay',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-syntax-export-default-from',
),
babelInclude([
path.resolve(__dirname, 'node_modules/react-navigation'),
path.resolve(__dirname, 'node_modules/react-native-elements'),
path.resolve(__dirname, 'node_modules/react-native-screens'),
path.resolve(__dirname, 'node_modules/react-native-gesture-handler'),
path.resolve(__dirname, 'node_modules/react-native-vector-icons'),
path.resolve(__dirname, 'node_modules/react-native-ratings'),
path.resolve(__dirname, 'node_modules/react-native-reanimated'),
path.resolve(__dirname, 'node_modules/react-scripts'),
path.resolve(__dirname, 'node_modules/react-relay'),
path.resolve(__dirname, 'src'),
]),
);