From ca1f334610b1e0fad7fa9407b6c1fcfb139d673a Mon Sep 17 00:00:00 2001 From: Christopher Dieringer Date: Wed, 26 Jun 2019 22:22:46 -0700 Subject: [PATCH] docs(webpack): improve typescript usage 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 } ```