-
Notifications
You must be signed in to change notification settings - Fork 230
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
Add support for named exports #4606
Add support for named exports #4606
Conversation
All changed packages have been documented.
Show changes
|
packages/compiler/src/module-resolver/esm/resolve-package-imports-exports.ts
Show resolved
Hide resolved
You can try these changes here
|
if (pkg.name === name) { | ||
return loadPackage(dir, pkg); | ||
} else { | ||
return undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is a bug which caused not found module issue. it should continue foreach not return directly.
error import-not-found: Couldn't resolve import "@azure-tools/typespec-ts"
@timotheeguerin could you help review this fix #4689?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the way it is done now is the correct way according the the node resolution spec, you only lookup to the first parent package.json for resolving self. What is the use case?
fix #4562