forked from haqq-network/haqq-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetro.config.js
51 lines (48 loc) · 1.37 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
42
43
44
45
46
47
48
49
50
51
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @format
*/
const blacklist = require('metro-config/src/defaults/exclusionList');
require('dotenv').config();
const config = {
resetCache: true,
stickyWorkers: false,
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: true,
inlineRequires: true,
},
}),
minifierPath: 'metro-minify-terser',
// plugins: ['@babel/plugin-proposal-numeric-separator'],
},
resolver: {
blacklistRE: blacklist([
/ios\/build\/SourcePackages\/checkouts\/grpc-ios\/native_src\/.*/,
]),
nodeModulesPaths: [
// process.env.PROVIDER_BASE_PACKAGE,
// process.env.PROVIDER_HOT_PACKAGE,
// process.env.ENCRYPTION_RN_PACKAGE,
// process.env.PROVIDER_WEB3_UTILS,
// process.env.PROVIDER_LEDGER_RN_PACKAGE,
].filter(Boolean),
},
watchFolders: [
// process.env.PROVIDER_BASE_PACKAGE,
// process.env.PROVIDER_HOT_PACKAGE,
// process.env.ENCRYPTION_RN_PACKAGE,
// process.env.PROVIDER_WEB3_UTILS,
// process.env.PROVIDER_LEDGER_RN_PACKAGE,
].filter(Boolean),
watcher: {
healthCheck: {
enabled: true,
},
},
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);