Check for empty decorators array on property nodes
This commit is contained in:
parent
afd68f47dd
commit
6f0fcc8e7b
@ -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