From f9dc29afbcf11e4428dcce733deb9e988eebc878 Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Tue, 30 Jan 2018 04:29:28 -0800 Subject: [PATCH] Fix missing `Ast` flow type Summary: The type was not imported and this escaped the attention of Flow somehow. Reviewed By: davidaurelio Differential Revision: D6834292 fbshipit-source-id: 8a9b5f2ac56fca2d0ff298b52f54935327eb2686 --- packages/metro/src/ModuleGraph/worker/collectDependencies.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/metro/src/ModuleGraph/worker/collectDependencies.js b/packages/metro/src/ModuleGraph/worker/collectDependencies.js index 8043da1b..1fe5d41e 100644 --- a/packages/metro/src/ModuleGraph/worker/collectDependencies.js +++ b/packages/metro/src/ModuleGraph/worker/collectDependencies.js @@ -19,6 +19,7 @@ const {traverse, types} = require('babel-core'); const prettyPrint = require('babel-generator').default; import type {TransformResultDependency} from '../types.flow'; +import type {Ast} from 'babel-core'; export type DynamicRequiresBehavior = 'throwAtRuntime' | 'reject'; type Options = {|