mirror of
https://github.com/status-im/metro.git
synced 2025-01-12 20:14:24 +00:00
Clean DependencyGraph.js
Reviewed By: cpojer Differential Revision: D7628731 fbshipit-source-id: 653d0ebc7b506fb19df15874aad7877c981f1979
This commit is contained in:
parent
b88d8d1f99
commit
585a0def32
@ -145,8 +145,6 @@ class Bundler {
|
|||||||
experimentalCaches: true,
|
experimentalCaches: true,
|
||||||
extraNodeModules: opts.extraNodeModules,
|
extraNodeModules: opts.extraNodeModules,
|
||||||
getPolyfills: opts.getPolyfills,
|
getPolyfills: opts.getPolyfills,
|
||||||
getTransformCacheKey,
|
|
||||||
globalTransformCache: opts.globalTransformCache,
|
|
||||||
hasteImplModulePath: opts.hasteImplModulePath,
|
hasteImplModulePath: opts.hasteImplModulePath,
|
||||||
maxWorkers: opts.maxWorkers,
|
maxWorkers: opts.maxWorkers,
|
||||||
platforms: new Set(opts.platforms),
|
platforms: new Set(opts.platforms),
|
||||||
@ -159,7 +157,6 @@ class Bundler {
|
|||||||
resetCache: opts.resetCache,
|
resetCache: opts.resetCache,
|
||||||
sourceExts: opts.sourceExts,
|
sourceExts: opts.sourceExts,
|
||||||
transformCode: this._cachedTransformCode.bind(this),
|
transformCode: this._cachedTransformCode.bind(this),
|
||||||
transformCache: opts.transformCache,
|
|
||||||
watch: opts.watch,
|
watch: opts.watch,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -30,11 +30,6 @@ const {
|
|||||||
} = require('metro-core');
|
} = require('metro-core');
|
||||||
|
|
||||||
import type {Options as JSTransformerOptions} from '../JSTransformer/worker';
|
import type {Options as JSTransformerOptions} from '../JSTransformer/worker';
|
||||||
import type {GlobalTransformCache} from '../lib/GlobalTransformCache';
|
|
||||||
import type {
|
|
||||||
GetTransformCacheKey,
|
|
||||||
TransformCache,
|
|
||||||
} from '../lib/TransformCaching';
|
|
||||||
import type {Reporter} from '../lib/reporting';
|
import type {Reporter} from '../lib/reporting';
|
||||||
import type {ModuleMap} from './DependencyGraph/ModuleResolution';
|
import type {ModuleMap} from './DependencyGraph/ModuleResolution';
|
||||||
import type {TransformCode} from './Module';
|
import type {TransformCode} from './Module';
|
||||||
@ -49,8 +44,6 @@ type Options = {|
|
|||||||
+experimentalCaches: boolean,
|
+experimentalCaches: boolean,
|
||||||
+extraNodeModules: ?{},
|
+extraNodeModules: ?{},
|
||||||
+getPolyfills: ({platform: ?string}) => $ReadOnlyArray<string>,
|
+getPolyfills: ({platform: ?string}) => $ReadOnlyArray<string>,
|
||||||
+getTransformCacheKey: GetTransformCacheKey,
|
|
||||||
+globalTransformCache: ?GlobalTransformCache,
|
|
||||||
+hasteImplModulePath?: string,
|
+hasteImplModulePath?: string,
|
||||||
+maxWorkers: number,
|
+maxWorkers: number,
|
||||||
+platforms: Set<string>,
|
+platforms: Set<string>,
|
||||||
@ -61,7 +54,6 @@ type Options = {|
|
|||||||
+resetCache: boolean,
|
+resetCache: boolean,
|
||||||
+resolveRequest: ?CustomResolver,
|
+resolveRequest: ?CustomResolver,
|
||||||
+sourceExts: Array<string>,
|
+sourceExts: Array<string>,
|
||||||
+transformCache: TransformCache,
|
|
||||||
+transformCode: TransformCode,
|
+transformCode: TransformCode,
|
||||||
+watch: boolean,
|
+watch: boolean,
|
||||||
|};
|
|};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user