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(shared): crash while resolving esm-only package #49

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Conversation

Anber
Copy link
Owner

@Anber Anber commented Feb 6, 2024

Motivation

See #43

Summary

require can't resolve ESM-only packages. We can use the resolve package here, but it does not solve all cases because pkgName can be an alias and should be resolved by a bundler. However, we can't use resolve from a bundler because it is async. The good news is that in that specific case, we can just ignore those packages. For now.

@Anber Anber requested a review from layershifter as a code owner February 6, 2024 10:33
Copy link

changeset-bot bot commented Feb 6, 2024

🦋 Changeset detected

Latest commit: 2b389ca

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Anber Anber merged commit c1a83e4 into main Feb 6, 2024
4 checks passed
@Anber Anber deleted the issue/43 branch February 6, 2024 10:41
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.

2 participants