diff --git a/packages/helpers/scripts/ast_grep.js b/packages/helpers/scripts/ast_grep.js index 018bf899ecde..28e04890702c 100644 --- a/packages/helpers/scripts/ast_grep.js +++ b/packages/helpers/scripts/ast_grep.js @@ -70,6 +70,8 @@ export function ast_grep() { `exports._ = ${func_name};`, ); + // since we match the { export x as _ } pattern, + // we need to find the assignment expression from the root tree .root() .findAll({