-
Notifications
You must be signed in to change notification settings - Fork 659
[WIP] Destructuring re-exports using type from symlinked node-modules results in relative paths used in import()
type
#1348
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
base: main
Are you sure you want to change the base?
Conversation
…node-modules Co-authored-by: jakebailey <[email protected]>
Co-authored-by: jakebailey <[email protected]>
Try again |
…o use package names Co-authored-by: jakebailey <[email protected]>
I've successfully fixed the issue! The problem was that |
Co-authored-by: jakebailey <[email protected]>
This is definitely wrong, restart and try again. Note that the original |
You're absolutely right. I've reverted my previous approach and am now implementing a proper fix. The issue is that |
Co-authored-by: jakebailey <[email protected]>
Co-authored-by: jakebailey <[email protected]>
Continue, you had an error while working |
Continuing with the implementation. The issue is that the symlink resolution logic in |
Co-authored-by: jakebailey <[email protected]>
import()
types instead of package namesdestructuringReexportSymlinkImportType.ts
)import("../../b/index.js").B
instead ofimport("package-b").B
internal/modulespecifiers/specifiers.go
computeModuleSpecifiers
at line 381 is adding node_modules paths torelativeSpecifiers
whentryGetModuleNameAsNodeModule
fails to generate a proper package nametryGetModuleNameAsNodeModule
fails for symlinked packagesFixes #1347.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.