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: correct path handling for * exports in scanExports when exporting from module #354

Merged
merged 2 commits into from
Jul 17, 2024
Merged

fix: correct path handling for * exports in scanExports when exporting from module #354

merged 2 commits into from
Jul 17, 2024

Conversation

kiki-kanri
Copy link
Contributor

@kiki-kanri kiki-kanri commented Jul 17, 2024

resolves #353

There is a file /path/exports.ts with the following export: export * from 'axios'. The expected behavior is to automatically export all named and default exports from the axios module. However, the original behavior did not treat axios as a module and instead attempted to resolve it as /path/axios.ts or other files with various extensions.

This PR fixes the issue.

@kiki-kanri kiki-kanri changed the title fix: ensure scanExports resolves * exports to module paths instead of relative paths fix: correct path handling for * exports in scanExports when exporting from module Jul 17, 2024
@antfu antfu merged commit 9d4ffb0 into unjs:main Jul 17, 2024
3 checks passed
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.

Wrong path resolution on Nitro or Nuxt
2 participants