mirror of
https://github.com/status-im/metro.git
synced 2025-01-20 16:09:21 +00:00
Fix RAM detection logic
Reviewed By: davidaurelio Differential Revision: D2932012 fb-gh-sync-id: ae2340de09ec3a4fae9371c3b8e6148d4ef267b8 shipit-source-id: ae2340de09ec3a4fae9371c3b8e6148d4ef267b8
This commit is contained in:
parent
d066468cb2
commit
c50043dd15
4
react-packager/src/Bundler/index.js
vendored
4
react-packager/src/Bundler/index.js
vendored
@ -149,9 +149,9 @@ class Bundler {
|
||||
}
|
||||
|
||||
bundle(options) {
|
||||
const {dev, isUnbundle, platform} = options;
|
||||
const {dev, unbundle, platform} = options;
|
||||
const moduleSystemDeps =
|
||||
this._resolver.getModuleSystemDependencies({dev, isUnbundle, platform});
|
||||
this._resolver.getModuleSystemDependencies({dev, unbundle, platform});
|
||||
return this._bundle({
|
||||
bundle: new Bundle(options.sourceMapUrl),
|
||||
moduleSystemDeps,
|
||||
|
4
react-packager/src/Resolver/index.js
vendored
4
react-packager/src/Resolver/index.js
vendored
@ -60,7 +60,7 @@ const getDependenciesValidateOpts = declareOpts({
|
||||
type: 'string',
|
||||
required: false,
|
||||
},
|
||||
isUnbundle: {
|
||||
unbundle: {
|
||||
type: 'boolean',
|
||||
default: false
|
||||
},
|
||||
@ -144,7 +144,7 @@ class Resolver {
|
||||
? path.join(__dirname, 'polyfills/prelude_dev.js')
|
||||
: path.join(__dirname, 'polyfills/prelude.js');
|
||||
|
||||
const moduleSystem = opts.isUnbundle
|
||||
const moduleSystem = opts.unbundle
|
||||
? path.join(__dirname, 'polyfills/require-unbundle.js')
|
||||
: path.join(__dirname, 'polyfills/require.js');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user