mirror of https://github.com/status-im/metro.git
Remove unused vars
Reviewed By: davidaurelio Differential Revision: D6362298 fbshipit-source-id: 8a79663e4f83d7b15919f2a1a8dd9416900f3203
This commit is contained in:
parent
5fdef3bdb2
commit
2c6aa5c5d8
|
@ -18,7 +18,6 @@ jest
|
|||
|
||||
const Transformer = require('../');
|
||||
|
||||
const {any} = jasmine;
|
||||
const {Readable} = require('stream');
|
||||
|
||||
describe('Transformer', function() {
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<string>,
|
||||
+assetRegistryPath: string,
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue