react-docgen-typescript-vite-plugin
v0.0.3
Published
![](https://nodei.co/npm/react-docgen-typescript-vite-plugin.png?downloadRank=true&downloads=true)
Downloads
3
Maintainers
Readme
react-docgen-typescript-vite-plugin
A simple plugin for vite to generate React component document infomation.
It can be used in Storybook.
Installation
npm i -D react-docgen-typescript-vite-plugin
Usage
//vite.config.js
const docgen = require("react-docgen-typescript-vite-plugin");
module.exports = {
plugins: [docgen(["./**/*.tsx"])],
};
Options
include
: files that should be included, support globby.context?
: tsconfig file root, by default it isprocess.cwd()