forked from cliqz-oss/browser-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrn-cli.config.js
More file actions
23 lines (22 loc) · 740 Bytes
/
rn-cli.config.js
File metadata and controls
23 lines (22 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const getPolyfills = require('react-native/rn-get-polyfills');
// From https://github.com/webpack/node-libs-browser and https://github.com/parshap/node-libs-react-native
module.exports = {
resolver: {
extraNodeModules: {
fs: require.resolve('./_empty'),
stream: require.resolve('stream-browserify'),
http: require.resolve('stream-http'),
https: require.resolve('https-browserify'),
path: require.resolve('path-browserify'),
buffer: require.resolve('buffer'),
},
},
serializer: {
getPolyfills({ platform }) {
return [
require.resolve('core-js/client/shim.js'),
require.resolve('number-to-locale-string'),
].concat(getPolyfills({ platform }));
},
},
};