Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Remove file extensions while resolving dependencies.#222

Merged
s-panferov merged 1 commit intos-panferov:masterfrom
jocelyn-stericker:remove-extensions
Sep 6, 2016
Merged

Remove file extensions while resolving dependencies.#222
s-panferov merged 1 commit intos-panferov:masterfrom
jocelyn-stericker:remove-extensions

Conversation

@jocelyn-stericker
Copy link
Copy Markdown
Contributor

As of microsoft/TypeScript#9646, TypeScript no longer expects extensions
in dependency resolution functions.

This should fix #221.

As of microsoft/TypeScript#9646, TypeScript no longer expects extensions
in dependency resolution functions.
@jocelyn-stericker
Copy link
Copy Markdown
Contributor Author

I'm not sure if this is the best way of fixing this -- having TypeScript try all possible extensions when we know the correct one seems hacky.

This change should not remove compatibility with TS 2.0.0, as TS 2.0.0 optionally accepted extensionless imports.

@s-panferov s-panferov merged commit c20cf54 into s-panferov:master Sep 6, 2016
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.

Loader not working with typescript 2.0.2 (RC)

2 participants