diff --git a/packages/metro/src/DeltaBundler/DeltaTransformer.js b/packages/metro/src/DeltaBundler/DeltaTransformer.js index 5e30ee5f..fc6cdbfb 100644 --- a/packages/metro/src/DeltaBundler/DeltaTransformer.js +++ b/packages/metro/src/DeltaBundler/DeltaTransformer.js @@ -19,7 +19,6 @@ const createModuleIdFactory = require('../lib/createModuleIdFactory'); const defaults = require('../defaults'); const getPreludeCode = require('../lib/getPreludeCode'); const nullthrows = require('fbjs/lib/nullthrows'); -const path = require('path'); const removeInlineRequiresBlacklistFromOptions = require('../lib/removeInlineRequiresBlacklistFromOptions'); const {EventEmitter} = require('events'); diff --git a/packages/metro/src/index.js b/packages/metro/src/index.js index f6f84dea..95bc9f2e 100644 --- a/packages/metro/src/index.js +++ b/packages/metro/src/index.js @@ -32,7 +32,6 @@ import type {ConfigT} from './Config'; import type {Reporter} from './lib/reporting'; import type {RequestOptions, OutputOptions} from './shared/types.flow.js'; import type {Options as ServerOptions} from './shared/types.flow'; -import type {IncomingMessage, ServerResponse} from 'http'; import type {Server as HttpServer} from 'http'; import type {Server as HttpsServer} from 'https'; diff --git a/packages/metro/src/node-haste/AssetResolutionCache.js b/packages/metro/src/node-haste/AssetResolutionCache.js index de906e40..309f6efc 100644 --- a/packages/metro/src/node-haste/AssetResolutionCache.js +++ b/packages/metro/src/node-haste/AssetResolutionCache.js @@ -39,8 +39,6 @@ type Options = {| type AssetInfo = {|platform: ?string, fileName: string|}; type InfoByAssetName = Map>; -const EMPTY_ARRAY = []; - /** * Lazily build an index of assets for the directories in which we're looking * for specific assets. For example if we're looking for `foo.png` in a `bar` diff --git a/packages/metro/src/node-haste/DependencyGraph/ModuleResolution.js b/packages/metro/src/node-haste/DependencyGraph/ModuleResolution.js index 6b2e2c21..9e9e9fc5 100644 --- a/packages/metro/src/node-haste/DependencyGraph/ModuleResolution.js +++ b/packages/metro/src/node-haste/DependencyGraph/ModuleResolution.js @@ -17,8 +17,6 @@ const isAbsolutePath = require('absolute-path'); const path = require('path'); const util = require('util'); -import type DependencyGraphHelpers from './DependencyGraphHelpers'; - export type DirExistsFn = (filePath: string) => boolean; /** diff --git a/packages/metro/src/node-haste/DependencyGraph/ResolutionRequest.js b/packages/metro/src/node-haste/DependencyGraph/ResolutionRequest.js index c7faa957..0d834f68 100644 --- a/packages/metro/src/node-haste/DependencyGraph/ResolutionRequest.js +++ b/packages/metro/src/node-haste/DependencyGraph/ResolutionRequest.js @@ -14,7 +14,6 @@ const ModuleResolution = require('./ModuleResolution'); -const isAbsolutePath = require('absolute-path'); const path = require('path'); const {DuplicateHasteCandidatesError} = require('jest-haste-map').ModuleMap;