diff --git a/packages/metro/src/ModuleGraph/types.flow.js b/packages/metro/src/ModuleGraph/types.flow.js index 02967e84..c4561fd6 100644 --- a/packages/metro/src/ModuleGraph/types.flow.js +++ b/packages/metro/src/ModuleGraph/types.flow.js @@ -16,8 +16,6 @@ import type {BabelSourceMap} from 'babel-core'; import type {Console} from 'console'; import type {FBSourceMap, MetroSourceMap} from 'metro-source-map'; -export type {Transformer} from '../JSTransformer/worker'; - export type BuildResult = {| ...GraphResult, prependedScripts: $ReadOnlyArray, diff --git a/packages/metro/src/ModuleGraph/worker/transform-module.js b/packages/metro/src/ModuleGraph/worker/transform-module.js index d0d17137..653a31a9 100644 --- a/packages/metro/src/ModuleGraph/worker/transform-module.js +++ b/packages/metro/src/ModuleGraph/worker/transform-module.js @@ -27,12 +27,12 @@ const path = require('path'); const {isAssetTypeAnImage} = require('../../Bundler/util'); const {basename} = require('path'); +import type {Transformer} from '../../JSTransformer/worker'; import type {HasteImpl} from '../../node-haste/Module'; import type { ImageSize, TransformedCodeFile, TransformedSourceFile, - Transformer, TransformResult, TransformVariants, } from '../types.flow';