From af80b046fab34bcf49ed511b2d22e7289bdc1e01 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 28 Jun 2018 09:33:07 -0700 Subject: [PATCH] Update Flow config documentation Close #1007 --- packages/website/guides/getting-started.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/website/guides/getting-started.md b/packages/website/guides/getting-started.md index b4345c25..2bbc983c 100644 --- a/packages/website/guides/getting-started.md +++ b/packages/website/guides/getting-started.md @@ -175,9 +175,13 @@ Please refer to the Jest documentation for more information. ``` [options] -module.name_mapper='(react-native)' -> 'react-native-web' +module.name_mapper='^react-native$' -> 'react-native-web' ``` +You may also need to inlucde a custom libdef +([example](https://gist.github.com/paularmstrong/f60b40d16fc83e1e8e532d483336f9bb)) +in your config. + ## Multi-platform applications ### Web-specific code