Skip to content

Regression: Slowed Builds with react-docgen-typescript #7998

@clintandrewhall

Description

@clintandrewhall

Describe the bug

This is a regression from the resolved state of #6430. It may be an issue with RDTL, perhaps not. They have styleguidist/react-docgen-typescript#112 still open.

In that bug, @strothj and @denieler were able to improve react-docgen-typescript-loader to reuse the parser instance to improve performance. I've updated our dependencies to 5.1.11 and there has been a regression.

Screen Shot 2019-09-04 at 4 19 02 PM

If I comment react-docgen-typescript-loader out, I get much faster build times:

Screen Shot 2019-09-04 at 4 29 26 PM

To Reproduce
Steps to reproduce the behavior:

  1. Enable react-docgen-typescript-loader for .tsx? files, as recommended.
  2. Have a repo with 10+ stories.
  3. See slow build time.

You can view our config here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions