esdoc-plugins
esdoc-plugins copied to clipboard
ECMAScript proposals error
Error:
warning: could not parse the following code. if you want to use ECMAScript proposals, see https://esdoc.org/manual/feature.html#ecmascript-proposal
Config:
{
"source": "./src",
"destination": "./docs",
"plugins": [
{
"name": "esdoc-standard-plugin"
},
{
"name": "esdoc-ecmascript-proposal-plugin",
"option": {
"all": true
}
}
]
}
ESDoc fails on:
const obj = {
to: options.to,
opts: {
html: true,
...options
}
}
Or (in generated docs only PORT is visible):
export const {
PORT,
JWT
} = process.env;