-
Notifications
You must be signed in to change notification settings - Fork 12.8k
importFixes: When one file redirects to another, consider both for global import specifiers #25834
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
Conversation
…obal import specifiers
@weswigham can you also take a look. seems related to the .d.ts issue |
b3d901f
to
06f0ba5
Compare
06f0ba5
to
2d955a3
Compare
2dcac53
to
15b8af7
Compare
b7f1c21
to
6d83f95
Compare
src/compiler/moduleSpecifiers.ts
Outdated
// KLUDGE: Don't assume one 'node_modules' links to another. More likely a single directory inside the node_modules is the symlink. | ||
// ALso, don't assume that an `@foo` directory is linked. More likely the contents of that are linked. | ||
function isNodeModulesOrScopedPackageDirectory(s: string): boolean { | ||
return s === "node_modules" || startsWith(s, "@"); |
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.
node_modules
comparison should (probably) use platform case comparison, for completeness.
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.
Small nit, but looks good.
Fixes #25279 (comment)