Fix RAM detection logic

Reviewed By: davidaurelio

Differential Revision: D2932012

fb-gh-sync-id: ae2340de09ec3a4fae9371c3b8e6148d4ef267b8
shipit-source-id: ae2340de09ec3a4fae9371c3b8e6148d4ef267b8
This commit is contained in:
Martín Bigio 2016-02-12 08:27:31 -08:00 committed by facebook-github-bot-7
parent e018aa3100
commit 3781bf974d
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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');