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

feat: support jiti.import(id, {default: true}) #323

Merged
merged 6 commits into from
Oct 5, 2024
Merged

feat: support jiti.import(id, {default: true}) #323

merged 6 commits into from
Oct 5, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Oct 5, 2024

Since the introduction of native ESM, a common pattern is that we need only the default export. A new jiti.import(id, { default: true }) makes this easier.

@pi0 pi0 self-assigned this Oct 5, 2024
@pi0 pi0 changed the title feat: support jiti.import(id, { default: true }) feat: support jiti.import(id, {default: true}) Oct 5, 2024
@pi0 pi0 merged commit daede71 into main Oct 5, 2024
7 checks passed
@pi0 pi0 deleted the feat/default branch October 5, 2024 10:42
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