fix(providence): provide right ast to oxcTraverse

This commit is contained in:
Thijs Louisse 2025-02-03 12:54:39 +01:00
parent 50170d4edc
commit 87ba78e6da
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'providence-analytics': patch
---
fix: provide right ast to oxcTraverse

View file

@ -313,7 +313,7 @@ async function trackDownIdentifierFn(
ExportDeclaration: handleExportDeclOrNamedDecl, ExportDeclaration: handleExportDeclOrNamedDecl,
}; };
oxcTraverse(oxcAst.program, visitor, { needsAdvancedPaths: true }); oxcTraverse(oxcAst, visitor, { needsAdvancedPaths: true });
if (pendingTrackDownPromise) { if (pendingTrackDownPromise) {
// We can't handle promises inside Babel traverse, so we do it here... // We can't handle promises inside Babel traverse, so we do it here...