mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08: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:
committed by
facebook-github-bot-7
parent
e018aa3100
commit
3781bf974d
4
packager/react-packager/src/Bundler/index.js
vendored
4
packager/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,
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user