Static
componentStatic
componentStatic
findStatic
getFinds the closest arrow function expression with an expression body starting from the given path. Returns the NodePath of the arrow function expression if found, otherwise undefined.
Static
getStatic
getStatic
getStatic
getStatic
hoistStatic
importStatic
replaceHoists the expression to a variable declaration in the closest scope.
If the path is inside an arrow function with an expression body, it converts the arrow function body to a block statement and inserts the variable declaration before the return statement.
If the path is not inside such an arrow function, it inserts the variable declaration before the closest statement and replaces the target node with the new variable identifier.
Contains utility methods for retrieving and manipulating node paths in Babel ASTs.