Clean server.js and runServer.js
Reviewed By: davidaurelio Differential Revision: D7628734 fbshipit-source-id: 3788b35b0f9b5034d9152c5c3b297313fbec231a
This commit is contained in:
parent
5fd92f90af
commit
11f102373d
|
@ -43,9 +43,6 @@ const statusPageMiddleware = require('./middleware/statusPageMiddleware.js');
|
|||
const systraceProfileMiddleware = require('./middleware/systraceProfileMiddleware.js');
|
||||
const webSocketProxy = require('./util/webSocketProxy.js');
|
||||
|
||||
/* $FlowFixMe(site=react_native_oss) */
|
||||
const TransformCaching = require('metro/src/lib/TransformCaching');
|
||||
|
||||
const {ASSET_REGISTRY_PATH} = require('../core/Constants');
|
||||
|
||||
import type {ConfigT} from 'metro';
|
||||
|
@ -191,7 +188,6 @@ function getPackagerServer(args, config, reporter) {
|
|||
getPolyfills: config.getPolyfills,
|
||||
getRunModuleStatement: config.getRunModuleStatement,
|
||||
getTransformOptions: config.getTransformOptions,
|
||||
globalTransformCache: null,
|
||||
hasteImplModulePath: config.hasteImplModulePath,
|
||||
maxWorkers: args.maxWorkers,
|
||||
platforms: defaultPlatforms.concat(args.platforms),
|
||||
|
@ -205,7 +201,6 @@ function getPackagerServer(args, config, reporter) {
|
|||
resolveRequest: config.resolveRequest,
|
||||
sourceExts: args.sourceExts.concat(defaultSourceExts),
|
||||
transformModulePath: transformModulePath,
|
||||
transformCache: TransformCaching.useTempDir(),
|
||||
verbose: args.verbose,
|
||||
watch: !args.nonPersistent,
|
||||
workerPath: config.getWorkerPath(),
|
||||
|
|
Loading…
Reference in New Issue