Skip to content

Commit

Permalink
fix(providence): provide right ast to oxcTraverse
Browse files Browse the repository at this point in the history
  • Loading branch information
tlouisse committed Feb 3, 2025
1 parent 50170d4 commit 87ba78e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nervous-worms-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'providence-analytics': patch
---

fix: provide right ast to oxcTraverse
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ async function trackDownIdentifierFn(
ExportDeclaration: handleExportDeclOrNamedDecl,
};

oxcTraverse(oxcAst.program, visitor, { needsAdvancedPaths: true });
oxcTraverse(oxcAst, visitor, { needsAdvancedPaths: true });

if (pendingTrackDownPromise) {
// We can't handle promises inside Babel traverse, so we do it here...
Expand Down

0 comments on commit 87ba78e

Please sign in to comment.