status-react/patches/metro+0.38.4.patch

23 lines
785 B
Diff

patch-package
--- a/node_modules/metro/src/JSTransformer.js
+++ b/node_modules/metro/src/JSTransformer.js
@@ -135,6 +135,7 @@ module.exports = class Transformer {
if (execArgv.length > 0 && execArgv[0].charAt(0) !== '-') {
execArgv.shift();
}
+ execArgv.push("--max-old-space-size=8192");
const env = _extends({},
process.env, {
--- a/node_modules/metro/src/defaults.js
+++ b/node_modules/metro/src/defaults.js
@@ -45,7 +45,7 @@ exports.sourceExts = ['js', 'json'];
exports.moduleSystem = require.resolve('./lib/polyfills/require.js');
-exports.platforms = ['ios', 'android', 'windows', 'web'];
+exports.platforms = ['ios', 'android', 'windows', 'web', 'desktop'];
exports.providesModuleNodeModules = ['react-native', 'react-native-windows'];