Closed runspired closed 2 years ago
This is roughly similar to #36 except that the stage-0 setting isn't enough.
If using some code with a decorator and using the jscodeshift transform, the following error is encountered:
This experimental syntax requires enabling one of the following parser plugin(s): 'decorators-legacy, decorators' (2:2)
Looks like decorators are enabled for the babylon parser.
babylon
You can tell jscodeshift to use this parser by setting
export const parser = 'babylon';
This is roughly similar to #36 except that the stage-0 setting isn't enough.
If using some code with a decorator and using the jscodeshift transform, the following error is encountered: