Merge pull request #3115 from justinfagnani/class-properties
Check for empty decorators array on property nodes
This commit is contained in:
commit
211a241050
@ -51,7 +51,7 @@ export default function ({ types: t }) {
|
||||
|
||||
for (let prop of props) {
|
||||
let propNode = prop.node;
|
||||
if (propNode.decorators) continue;
|
||||
if (propNode.decorators && propNode.decorators.length > 0) continue;
|
||||
if (!propNode.value) continue;
|
||||
|
||||
let isStatic = propNode.static;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user