forked from akveo/kittenTricks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metro.config.js
41 lines (34 loc) · 1.54 KB
/
metro.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
const path = require('path');
const env = require('./env');
const appModules = [
path.resolve(env.EVA_PACKAGES_PATH, 'dss'),
path.resolve(env.EVA_PACKAGES_PATH, 'eva'),
path.resolve(env.EVA_PACKAGES_PATH, 'material'),
path.resolve(env.EVA_PACKAGES_PATH, 'processor'),
path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'components'),
path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'date-fns'),
path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'eva-icons'),
path.resolve(env.UI_KITTEN_PACKAGES_PATH, 'moment'),
];
const extraNodeModules = {
'@babel/runtime': path.resolve(__dirname, './node_modules/@babel/runtime'),
'react': path.resolve(__dirname, './node_modules/react'),
'react-native': path.resolve(__dirname, './node_modules/react-native'),
// @ui-kitten/components
'fecha': path.resolve(__dirname, './node_modules/fecha'),
'hoist-non-react-statics': path.resolve(__dirname, './node_modules/hoist-non-react-statics'),
'lodash.merge': path.resolve(__dirname, './node_modules/lodash.merge'),
'react-native-svg': path.resolve(__dirname, './node_modules/react-native-svg'),
// @ui-kitten/date-fns
'date-fns': path.resolve(__dirname, './node_modules/date-fns'),
// @ui-kitten/eva-icons
'react-native-eva-icons': path.resolve(__dirname, './node_modules/react-native-eva-icons'),
// @ui-kitten/moment
'moment': path.resolve(__dirname, './node_modules/moment'),
'react-is': path.resolve(__dirname, './node_modules/react-is'),
};
module.exports = {
projectRoot: path.resolve(__dirname),
resolver: { extraNodeModules },
watchFolders: appModules,
};