Permalink
Browse files

Upgrade metro-bundler to v0.10.0

Reviewed By: davidaurelio

Differential Revision: D5469746

fbshipit-source-id: 1d2c0f6c5bb9761cfc54b6c9fdbb1a9f20f535ea
  • Loading branch information...
fromcelticpark authored and facebook-github-bot committed Jul 21, 2017
1 parent eb0d99c commit 70edc2fd80912d3fb803cb71a1d27f9e5f82b96e
Showing with 10 additions and 8 deletions.
  1. +3 −3 jest/setup.js
  2. +1 −0 local-cli/bundle/buildBundle.js
  3. +5 −3 local-cli/server/runServer.js
  4. +0 −1 local-cli/util/Config.js
  5. +1 −1 package.json
View
@@ -10,9 +10,9 @@
const mockComponent = require.requireActual('./mockComponent');
require.requireActual('metro-bundler/src/Resolver/polyfills/babelHelpers.js');
require.requireActual('metro-bundler/src/Resolver/polyfills/Object.es7.js');
require.requireActual('metro-bundler/src/Resolver/polyfills/error-guard');
require.requireActual('../Libraries/polyfills/babelHelpers.js');
require.requireActual('../Libraries/polyfills/Object.es7.js');
require.requireActual('../Libraries/polyfills/error-guard');
global.__DEV__ = true;
@@ -87,6 +87,7 @@ function buildBundle(
assetExts: defaultAssetExts.concat(assetExts),
blacklistRE: config.getBlacklistRE(),
extraNodeModules: config.extraNodeModules,
getPolyfills: config.getPolyfills,
getTransformOptions: config.getTransformOptions,
globalTransformCache: null,
hasteImpl: config.hasteImpl,
@@ -37,6 +37,8 @@ const statusPageMiddleware = require('./middleware/statusPageMiddleware.js');
const systraceProfileMiddleware = require('./middleware/systraceProfileMiddleware.js');
const webSocketProxy = require('./util/webSocketProxy.js');
const TransformCaching = require('metro-bundler/src/lib/TransformCaching');
import type {ConfigT} from '../util/Config';
import type {Reporter} from 'metro-bundler/src/lib/reporting';
@@ -118,9 +120,7 @@ function runServer(
function getPackagerServer(args, config) {
const transformModulePath = args.transformer
? path.resolve(args.transformer)
: typeof config.getTransformModulePath === 'function'
? config.getTransformModulePath()
: undefined;
: config.getTransformModulePath();
const providesModuleNodeModules =
args.providesModuleNodeModules || defaultProvidesModuleNodeModules;
@@ -152,6 +152,7 @@ function getPackagerServer(args, config) {
extraNodeModules: config.extraNodeModules,
getPolyfills: config.getPolyfills,
getTransformOptions: config.getTransformOptions,
globalTransformCache: null,
hasteImpl: config.hasteImpl,
maxWorkers: args.maxWorkers,
platforms: defaultPlatforms.concat(args.platforms),
@@ -164,6 +165,7 @@ function getPackagerServer(args, config) {
resetCache: args.resetCache,
sourceExts: defaultSourceExts.concat(args.sourceExts),
transformModulePath: transformModulePath,
transformCache: TransformCaching.useTempDir(),
verbose: args.verbose,
watch: !args.nonPersistent,
workerPath: config.getWorkerPath(),
View
@@ -25,7 +25,6 @@ import type {
GetTransformOptions,
PostMinifyProcess,
PostProcessModules,
// $FlowFixMe: Exported by metro bundler
PostProcessBundleSourcemap
} from 'metro-bundler/src/Bundler';
import type {HasteImpl} from 'metro-bundler/src/node-haste/Module';
View
@@ -182,7 +182,7 @@
"left-pad": "^1.1.3",
"lodash": "^4.16.6",
"merge-stream": "^1.0.1",
"metro-bundler": "^0.9.0",
"metro-bundler": "^0.10.0",
"mime": "^1.3.4",
"mime-types": "2.1.11",
"minimist": "^1.2.0",

0 comments on commit 70edc2f

Please sign in to comment.