-
Notifications
You must be signed in to change notification settings - Fork 12k
build: add path mapping support to broccoli typescript #797
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
4ffdaa0
to
4b08458
Compare
return ts.ScriptSnapshot.fromString(fs.readFileSync(absoluteTsFilePath, FS_OPTS)); | ||
} | ||
|
||
resolveModuleNames(moduleNames, containingFile)/*: ResolvedModule[]*/ { | ||
return moduleNames.map((moduleName) => { | ||
for (const ext of ['ts', 'd.ts']) { |
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.
Why const here?
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.
It won't change.
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.
Oh, I didn't realize const
was block-scoped. Disregard.
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.
Still why const
here and let
in other for-of loops ? 👿
45e21e4
to
03a2491
Compare
@hansl LGTM! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.