From b58e5dc930da197cbbed2f35b41d1bbbc5ae2531 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Tue, 25 Apr 2017 11:38:36 -0700 Subject: [PATCH] inline plugin: type options Summary: Adds a stronger type for the inline plugin to help with future refactors Reviewed By: jeanlauliac Differential Revision: D4945842 fbshipit-source-id: f9bde75bf47271d80d2420d985a6a5609cee8952 --- packages/metro-bundler/src/JSTransformer/worker/inline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/metro-bundler/src/JSTransformer/worker/inline.js b/packages/metro-bundler/src/JSTransformer/worker/inline.js index 91811a1f..9952f229 100644 --- a/packages/metro-bundler/src/JSTransformer/worker/inline.js +++ b/packages/metro-bundler/src/JSTransformer/worker/inline.js @@ -170,7 +170,7 @@ type AstResult = { function inline( filename: string, transformResult: {ast?: ?Ast, code: string, map: ?SourceMap}, - options: {}, + options: {+dev: boolean, +platform: string}, ): AstResult { const code = transformResult.code; const babelOptions = {