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
e018aa3100
commit
3781bf974d
|
@ -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,
|
||||
|
|
|
@ -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…
Reference in New Issue