zaach / jsxgettext

Extract gettext calls from JavaScript, EJS, and other template formats.
Mozilla Public License 2.0
105 stars 56 forks source link

Add an option to customize acorn config. #115

Closed Arthraim closed 7 years ago

Arthraim commented 7 years ago

Since we were not able to add allowReserved option for acorn itself, I just added a way to config it from very outside. Now I'm using it like below:

node ./node_modules/jsxgettext/lib/cli.js -o OUTPUT_FILE --parser-options '{"allowReserved": true}' SOME_JS_FILE

Hope you'd like it.

Arthraim commented 7 years ago

THANKS