-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetro.config.js
More file actions
29 lines (26 loc) · 848 Bytes
/
metro.config.js
File metadata and controls
29 lines (26 loc) · 848 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
25
26
27
28
29
const path = require('path');
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const exclusionList = require('metro-config/src/defaults/exclusionList');
const root = path.resolve(__dirname, '..');
const exampleNodeModules = path.resolve(__dirname, 'node_modules');
/**
* Metro configuration
* https://reactnative.dev/docs/metro
*
* @type {import('metro-config').MetroConfig}
*/
const config = {
watchFolders: [root],
resolver: {
// example-old 폴더만 제외
blockList: exclusionList([
new RegExp(`${root}/example-old/.*`),
]),
// 모든 모듈을 example/node_modules에서 찾도록 설정
nodeModulesPaths: [exampleNodeModules],
extraNodeModules: {
'react-native-bootpay-api': root,
},
},
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);