Skip to content

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

Merged
merged 1 commit into from
May 17, 2016

Conversation

hansl
Copy link
Contributor

@hansl hansl commented May 17, 2016

No description provided.

@hansl hansl force-pushed the source-dir branch 3 times, most recently from 4ffdaa0 to 4b08458 Compare May 17, 2016 17:09
@hansl hansl removed the state: WIP label May 17, 2016
return ts.ScriptSnapshot.fromString(fs.readFileSync(absoluteTsFilePath, FS_OPTS));
}

resolveModuleNames(moduleNames, containingFile)/*: ResolvedModule[]*/ {
return moduleNames.map((moduleName) => {
for (const ext of ['ts', 'd.ts']) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why const here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't change.

Copy link
Contributor

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.

Copy link
Member

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 ? 👿

@hansl hansl force-pushed the source-dir branch 4 times, most recently from 45e21e4 to 03a2491 Compare May 17, 2016 18:10
@jeffbcross
Copy link
Contributor

@hansl LGTM!

@hansl hansl merged commit 289c9bd into angular:master May 17, 2016
@hansl hansl deleted the source-dir branch July 22, 2016 17:19
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants