esdoc-sucrase-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

esdoc-sucrase-plugin

Transpile sources with sucrase before passing them to esdoc.

Note: Event though you can use TypeScript and Flow with this plugin, it doesn't add any type info to your docs.

Installation

Run npm i --save-dev esdoc-sucrase-plugin.

Usage

Add the plugin to your esdoc.json file and specify which sucrase transforms to use:

{
  "source": "./src",
  ...
  "plugins": [
    ...
    {
      "name": "esdoc-sucrase-plugin",
      "option": { "transforms": ["typescript"] }
    },
  ]
}

Note: We test only with TypeScript, but flow should work as well.

Package Sidebar

Install

npm i esdoc-sucrase-plugin

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

8.46 kB

Total Files

9

Last publish

Collaborators

  • lhechenberger