angular/dgeni

Unexpected reserved word

Closed this issue · 4 comments

I get this error when trying to run dgeni on source files written in ES6 - in particular, the export statement at the beginning of a script.

This should not error out on ES6 scripts

Investigating this further, this looks like because esprima does not support ES6 fully.

hco commented

Seems to be a duplicate of #122

@wesleycho You are right. Does it take to replace Esprima by Espree. This is done for jsdoc.
What's your opinion @petebacondarwin ?

I will update to dgeni-packages to use Espree. Closing as a duplicate of #122