react-docgen-typescript-vite-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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 is process.cwd()

Package Sidebar

Install

npm i react-docgen-typescript-vite-plugin

Weekly Downloads

4

Version

0.0.3

License

ISC

Unpacked Size

6.54 kB

Total Files

5

Last publish

Collaborators

  • yonghao.wang