From 11f102373d74669d57fd048c4288beca7f47059e Mon Sep 17 00:00:00 2001 From: Miguel Jimenez Esun Date: Fri, 20 Apr 2018 07:24:14 -0700 Subject: [PATCH] Clean server.js and runServer.js Reviewed By: davidaurelio Differential Revision: D7628734 fbshipit-source-id: 3788b35b0f9b5034d9152c5c3b297313fbec231a --- local-cli/server/runServer.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 1ccedf777..47c11535b 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -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(),