esdoc / esdoc-plugins

MIT License
140 stars 77 forks source link

ECMAScript proposals error #63

Open andre2 opened 6 years ago

andre2 commented 6 years ago

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;