Unexpected reserved word
wesleycho opened this issue · 4 comments
wesleycho commented
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
wesleycho commented
Investigating this further, this looks like because esprima does not support ES6 fully.
forresst commented
@wesleycho You are right. Does it take to replace Esprima by Espree. This is done for jsdoc.
What's your opinion @petebacondarwin ?
petebacondarwin commented
I will update to dgeni-packages to use Espree. Closing as a duplicate of #122