fix exported classes with static class properties - fixes #2868
This commit is contained in:
@@ -134,6 +134,10 @@ export default function ({ types: t }) {
|
||||
nodes.push(t.expressionStatement(ref));
|
||||
}
|
||||
|
||||
if (path.isClassDeclaration() && path.parentPath.isExportDeclaration()) {
|
||||
path = path.parentPath;
|
||||
}
|
||||
|
||||
path.insertAfter(nodes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user