-
Notifications
You must be signed in to change notification settings - Fork 49
/
metro.config.js
46 lines (45 loc) · 1.68 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
const path = require("path");
module.exports = {
projectRoot: path.resolve(__dirname, "apps/wallet-mobile"),
watchFolders: [
path.resolve(__dirname, "apps/wallet-mobile"),
path.resolve(__dirname, "node_modules"),
path.resolve(__dirname, "packages/api"),
path.resolve(__dirname, "packages/claim"),
path.resolve(__dirname, "packages/common"),
path.resolve(__dirname, "packages/dapp-connector"),
path.resolve(__dirname, "packages/exchange"),
path.resolve(__dirname, "packages/explorers"),
path.resolve(__dirname, "packages/identicon"),
path.resolve(__dirname, "packages/links"),
path.resolve(__dirname, "packages/notifications"),
path.resolve(__dirname, "packages/portfolio"),
path.resolve(__dirname, "packages/resolver"),
path.resolve(__dirname, "packages/setup-wallet"),
path.resolve(__dirname, "packages/staking"),
path.resolve(__dirname, "packages/swap"),
path.resolve(__dirname, "packages/theme"),
path.resolve(__dirname, "packages/transfer"),
path.resolve(__dirname, "packages/types"),
],
resolver: {
resolverMainFields: ["sbmodern", "react-native", "browser", "main"],
sourceExts: ["js", "jsx", "ts", "tsx", "json", "md"],
assetExts: ["png", "jpg", "jpeg", "ttf", "otf", "woff", "woff2"],
extraNodeModules: {
crypto: require.resolve("react-native-crypto"),
stream: require.resolve("stream-browserify"),
url: require.resolve("url"),
util: require.resolve("util"),
vm: require.resolve("vm-browserify"),
},
},
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
};