-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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
- vite plugin api
Metadata
Metadata
Assignees
Labels
Type
Projects
Status