Babel preset for latest jsdoc
npm install --save-dev babel-preset-jsdoc
Add the following line to your .babelrc
file:
{
"presets": ["jsdoc", "jsdoc/object-rest"]
}
- 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.