Skip to content

Commit 87e9129

Browse files
cdaringesapegin
authored andcommitted
Docs: Improve typescript usage (styleguidist#1395)
As discussed in styleguidist/react-docgen-typescript#71 (comment), some compiler options break component discovery. the safest strategy is to always include the tsconfig from user space, which improves component detection.
1 parent dc5d662 commit 87e9129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Webpack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ If you’re using [Create React App](https://github.com/facebook/create-react-ap
9797

9898
```javascript
9999
module.exports = {
100-
propsParser: require('react-docgen-typescript').parse
100+
propsParser: require('react-docgen-typescript').withCustomConfig('./tsconfig.json').parse
101101
}
102102
```
103103

0 commit comments

Comments
 (0)