From c3d176726165527141e6410506048d0dcf24cafa Mon Sep 17 00:00:00 2001 From: Federico Zivolo Date: Wed, 25 Sep 2019 12:41:36 +0200 Subject: [PATCH] Update adding-flow.md With the currently documented regex we catch relative imports, that then get wrongly mapped. For example, `./Foobar.js` will become `/src/./Foobar.js`, instead of `/src/the/real/file/path/Foobar.js`. The new regex will exclude imports starting with a dot (`.`) --- docusaurus/docs/adding-flow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/adding-flow.md b/docusaurus/docs/adding-flow.md index 570d88a22bb..321605261e9 100644 --- a/docusaurus/docs/adding-flow.md +++ b/docusaurus/docs/adding-flow.md @@ -22,7 +22,7 @@ make sure to add the following line to your `.flowconfig` to make Flow aware of ```diff [options] -+ module.name_mapper='^\(.*\)$' -> '/src/\1' ++ module.name_mapper='^\([^\.].*\)$' -> '/src/\1' ``` To learn more about Flow, check out [its documentation](https://flow.org/).