skip loose mode for class methods when using decorators, addresses #1501
This commit is contained in:
parent
539784b640
commit
8277a532f4
@ -479,7 +479,7 @@ class ClassTransformer {
|
||||
if (node.kind === "method") {
|
||||
nameMethod.property(node, this.file, path ? path.get("value").scope : this.scope);
|
||||
|
||||
if (this.isLoose) {
|
||||
if (this.isLoose && !node.decorators) {
|
||||
// use assignments instead of define properties for loose classes
|
||||
|
||||
var classRef = this.classRef;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user