Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve with esm conditions in async context #264

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jul 1, 2024

In async mode, jiti should always resolve with async/esm conditions.

This PR also exposes jiti.importResolve utility that uses esm condition in contrast to jiti.resolve that is CJS.

@pi0 pi0 self-assigned this Jul 1, 2024
@pi0 pi0 merged commit 608eb80 into main Jul 1, 2024
5 checks passed
@pi0 pi0 deleted the fix/esm-resolve branch July 1, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant