-
Notifications
You must be signed in to change notification settings - Fork 0
/
metro.config.js
29 lines (28 loc) · 840 Bytes
/
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
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @format
*/
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
resolver: {
extraNodeModules: {
assert: require.resolve('assert'),
buffer: require.resolve('buffer'),
crypto: require.resolve('react-native-crypto'),
randombytes: require.resolve('react-native-randombytes'),
stream: require.resolve('stream-browserify'),
process: require.resolve('process/browser.js'),
util: require.resolve('util'),
zlib: require.resolve('browserify-zlib'),
},
},
};