diff --git a/packages/metro-bundler/src/JSTransformer/__tests__/Transformer-test.js b/packages/metro-bundler/src/JSTransformer/__tests__/Transformer-test.js index 11f5c258..c093f32d 100644 --- a/packages/metro-bundler/src/JSTransformer/__tests__/Transformer-test.js +++ b/packages/metro-bundler/src/JSTransformer/__tests__/Transformer-test.js @@ -18,7 +18,6 @@ jest const Transformer = require('../'); -const {any} = jasmine; const {Readable} = require('stream'); describe('Transformer', function() { diff --git a/packages/metro-bundler/src/ModuleGraph/worker/__tests__/wrap-worker-fn-test.js b/packages/metro-bundler/src/ModuleGraph/worker/__tests__/wrap-worker-fn-test.js index ebb10ec9..e1b532ae 100644 --- a/packages/metro-bundler/src/ModuleGraph/worker/__tests__/wrap-worker-fn-test.js +++ b/packages/metro-bundler/src/ModuleGraph/worker/__tests__/wrap-worker-fn-test.js @@ -19,8 +19,6 @@ const wrapWorkerFn = require('../wrap-worker-fn'); const {dirname} = require('path'); const {fn} = require('../../test-helpers'); -const {any} = jasmine; - describe('wrapWorkerFn:', () => { const infile = '/arbitrary/in/file'; const outfile = '/arbitrary/in/file'; diff --git a/packages/metro-bundler/src/Resolver/__tests__/Resolver-test.js b/packages/metro-bundler/src/Resolver/__tests__/Resolver-test.js index 80b7d272..88639be0 100644 --- a/packages/metro-bundler/src/Resolver/__tests__/Resolver-test.js +++ b/packages/metro-bundler/src/Resolver/__tests__/Resolver-test.js @@ -16,7 +16,6 @@ jest.useRealTimers(); jest.mock('path'); -const {join: pathJoin} = require.requireActual('path'); const DependencyGraph = jest.fn(); jest.setMock('../../node-haste/DependencyGraph', DependencyGraph); let Module; diff --git a/packages/metro-bundler/src/Resolver/index.js b/packages/metro-bundler/src/Resolver/index.js index d27227c3..204863ba 100644 --- a/packages/metro-bundler/src/Resolver/index.js +++ b/packages/metro-bundler/src/Resolver/index.js @@ -24,9 +24,8 @@ const { const pathJoin = require('path').join; import type Module, {HasteImpl, TransformCode} from '../node-haste/Module'; -import type {MappingsMap, CompactRawMappings} from '../lib/SourceMap'; +import type {CompactRawMappings} from '../lib/SourceMap'; import type {PostMinifyProcess} from '../Bundler'; -import type {Options as JSTransformerOptions} from '../JSTransformer/worker'; import type {Reporter} from '../lib/reporting'; import type { TransformCache, @@ -36,8 +35,6 @@ import type {GlobalTransformCache} from '../lib/GlobalTransformCache'; import typeof {minify as MinifyCode} from '../JSTransformer/worker'; -type ContainsTransformerOptions = {+transformer: JSTransformerOptions}; - type Options = {| +assetExts: Array, +assetRegistryPath: string, diff --git a/packages/metro-bundler/src/Server/index.js b/packages/metro-bundler/src/Server/index.js index 1f48bbd5..e42cec8a 100644 --- a/packages/metro-bundler/src/Server/index.js +++ b/packages/metro-bundler/src/Server/index.js @@ -23,7 +23,6 @@ const formatBundlingError = require('../lib/formatBundlingError'); const getMaxWorkers = require('../lib/getMaxWorkers'); const getOrderedDependencyPaths = require('../lib/getOrderedDependencyPaths'); const mime = require('mime-types'); -const nullthrows = require('fbjs/lib/nullthrows'); const parsePlatformFilePath = require('../node-haste/lib/parsePlatformFilePath'); const path = require('path'); const symbolicate = require('./symbolicate'); diff --git a/packages/metro-bundler/src/node-haste/Module.js b/packages/metro-bundler/src/node-haste/Module.js index 54032547..22204b1f 100644 --- a/packages/metro-bundler/src/node-haste/Module.js +++ b/packages/metro-bundler/src/node-haste/Module.js @@ -21,7 +21,6 @@ const jsonStableStringify = require('json-stable-stringify'); const {join: joinPath, relative: relativePath, extname} = require('path'); -import type {RawMapping} from '../Bundler/source-map'; import type { TransformedCode, Options as WorkerOptions,