Skip to content

Commit

Permalink
fix: additional handling of relative path from esm-resolve (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmn authored Nov 1, 2024
1 parent 627c721 commit c588771
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-plugin/src/utils/state-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,9 @@ const filePathResolver = (
});

if (resolved) {
if (resolved.startsWith('.')) {
return path.resolve(path.dirname(sourceFilePath), resolved);
}
return resolved;
}
}
Expand Down

0 comments on commit c588771

Please sign in to comment.