esdoc2 / esdoc2-plugins

MIT License
6 stars 5 forks source link

esdoc2-ecmascript-proposal-plugin not working #7

Open LaloHao opened 6 years ago

LaloHao commented 6 years ago

Hi, i'm unable to make the plugin work, even tho i have the plugin added to .esdoc.json

_warning: could not parse the following code. if you want to use ECMAScript proposals, see https://esdoc2.org/manual/feature.html#ecmascript-proposal_

Here's my .esdoc.json

{
  "source": ".",
  "destination": "./out",
  "excludes": [
    "animations",
    "docs",
    "images",
    "node_modules",
    "out",
    "public",
    "tools",
    "test"
  ],
  "plugins": [
    {"name": "esdoc2-ecmascript-proposal-plugin",
     "option": {
       "classProperties": true,
       "objectRestSpread": true,
       "doExpressions": true,
       "functionBind": true,
       "functionSent": true,
       "asyncGenerators": true,
       "decorators": true,
       "exportExtensions": true,
       "dynamicImport": true
     }
    },
    {"name": "esdoc2-publish-html-plugin"}
  ]
}

The problem persists even if i use esdoc2-standard-plugin

Can you help me?

LaloHao commented 6 years ago

Looks like it hasn't been updated https://github.com/esdoc/esdoc/issues/467 either

LaloHao commented 6 years ago

The problem was a static with parsing a static property, fixed by updating the plugins options to fit babylon's https://github.com/esdoc2/esdoc2-plugins/pull/8

Tests are missing tho