From 87e912933ee94fac817ce200694b58ee810308ae Mon Sep 17 00:00:00 2001 From: Christopher Dieringer Date: Fri, 28 Jun 2019 02:32:49 -0700 Subject: [PATCH] Docs: Improve typescript usage (#1395) As discussed in https://github.com/styleguidist/react-docgen-typescript/issues/71#issuecomment-362370750, some compiler options break component discovery. the safest strategy is to always include the tsconfig from user space, which improves component detection. --- docs/Webpack.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Webpack.md b/docs/Webpack.md index 85ac42554..244e35248 100644 --- a/docs/Webpack.md +++ b/docs/Webpack.md @@ -97,7 +97,7 @@ If you’re using [Create React App](https://github.com/facebook/create-react-ap ```javascript module.exports = { - propsParser: require('react-docgen-typescript').parse + propsParser: require('react-docgen-typescript').withCustomConfig('./tsconfig.json').parse } ```