Skip to content

Switch off of module-deps #716

Open
Open
@tmcw

Description

The more I look at this problem, the more sure I am that documentation.js should no longer rely on module-deps, and instead implement dependency resolution via a Babel-based solution, or drop dependency resolution entirely.

Rationale:

  • module-deps requires that we parse, transform, parse, and then re-parse JavaScript for every file. For small file trees, it's nearly half of documentation.js's runtime
  • module-deps doesn't get us any closer to inferring whether something is public or private, whereas our current --document-exported flow can
  • document-exported is essentially a close of module-deps, but for ES6
  • module-deps is agressively async in a way that doesn't help documentation.js

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions