Make preset a function to account for different dev settings

Summary: Makes `babel-preset-react-native` a factory function that allows to include/exclude dev tool transforms per transform.

Reviewed By: jeanlauliac

Differential Revision: D5237158

fbshipit-source-id: aa7be0fc0f471575b4ee1c5a0e266e2ed2477fc6
This commit is contained in:
David Aurelio 2017-06-14 09:25:55 -07:00 committed by Facebook Github Bot
parent 20ed5b8d3a
commit 1a286a9945
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ type _Plugins = Array<string | Object | [InlinePlugin] | [InlinePlugin, mixed]>;
type __TransformOptions = {
filename?: string,
filenameRelative?: string,
presets?: Array<string | Object>,
presets?: _Plugins,
plugins?: _Plugins,
parserOpts?: BabylonOptions,
generatorOpts?: GeneratorOptions,