Skip to content

Commit

Permalink
Docs: Improve typescript usage (#1395)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cdaringe authored and sapegin committed Jun 28, 2019
1 parent dc5d662 commit 87e9129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

Expand Down

0 comments on commit 87e9129

Please sign in to comment.