babel / babylon

PSA: moved into babel/babel as @babel/parser -->

Home Page:https://github.com/babel/babel/tree/master/packages/babel-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is there something wrong?

vaseala opened this issue · comments

this.hasPlugin("decorators2") &&

is it should to be : `!this.hasPlugin("decorators2")' ?

commented

Hey @ATMjs! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.

It's correct: only the decorators2 plugin disallows decorator on non-method class members, so we need to check if the decorator has been parsed using that plugin