mirror of https://github.com/status-im/metro.git
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:
parent
20ed5b8d3a
commit
1a286a9945
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue