- temporary fix
This commit is contained in:
committed by
Henry Zhu
parent
e9fc38bcd3
commit
ef25bebfa8
@@ -121,7 +121,12 @@ export default class PathHoister {
|
||||
do {
|
||||
if (!path.parentPath ||
|
||||
(Array.isArray(path.container) && path.isStatement()) ||
|
||||
(path.isVariableDeclarator() && path.parentPath.node.declarations.length > 1))
|
||||
(
|
||||
path.isVariableDeclarator() &&
|
||||
path.parentPath.node !== null &&
|
||||
path.parentPath.node.declarations.length > 1
|
||||
)
|
||||
)
|
||||
return path;
|
||||
} while ((path = path.parentPath));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user