Skip to content

Commit

Permalink
docs(webpack): improve typescript usage
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 Jun 27, 2019
1 parent dc5d662 commit ca1f334
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 ca1f334

Please sign in to comment.