Skip to content

🔨 docgen parsing #2

@unicornware

Description

@unicornware

Proposed work

integrating react-docgen-typescript into the project to implement docgen parsing.

the vite dev server creates a plugin container that invokes rollup build hooks just as rollup does. build hook transform is called on each module request and can be used to augment individual modules. the hook receives two arguments: the code to transform (which may already include transformations applied by other plugins), code, and the path to the module, id.

parsing will be performed in the plugin's transform function. id will be parsed for docgen info; code will be updated to include logic that adds a __docgenInfo property (ComponentDoc object) to all components exported from id.

the docgen parser will be created during plugin setup using withCustomConfig.

Success criteria

  • transform

Related documents

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions