Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Need to parse all external dependencies #33

@renaud-dc

Description

@renaud-dc

First, thanks for this very helpful project ! Its great !

Here is my issue / improvement ##idea:
I have issues documenting Vue components that use external code (type definition, helpers) imported with 'import' or 'require'.
In order to resolve these dependencies issues, I had the idea to perform a prebuild step using rollup in order to generates a single file containing my Vue component and all its dependencies (types definition, mixins, etc...). This work well and I get a nice '.js' file containing everything needed for documentation generation...
Sadly, vue-docgen-api doesn't support .'js' file input and only look for mixins in external files.

Would it be possible to enable '.js' file VueComponent support and enable mixins parsing in this very same file ?

You could even provide this rollup (or webpack) prebuild step as part of vue-docgen-api to make it available for everyone. :)

Regards,
Renaud

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions