Babel preset for latest jsdoc
Installation
npm install --save-dev babel-preset-jsdoc
Usage
Add the following line to your .babelrc
file:
Presets
- jsdoc
- jsdoc/object-rest add if you need object-rest (stage 2) https://phabricator.babeljs.io/T7086
Note: to support async
functions and other proposals, you can add babel preset stage-1
or the stage you want.