-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Adding different module resolution strategies #4352
Conversation
} | ||
|
||
// module name has one of supported extesions | ||
for(let ext of supportedExtensions ) { |
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 do not think we need this since SystemJS allowes it
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.
Space after for
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.
ok
!!! Fantastic, finally got here. Thanks! |
|
||
|
||
export const enum ModuleResolutionKind { | ||
Legacy = 1, |
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.
What is Legacy? Could you add comment?
+cc @mprobst |
@@ -1025,6 +1025,9 @@ module Harness { | |||
options.module = ts.ModuleKind.UMD; | |||
} else if (setting.value.toLowerCase() === "commonjs") { | |||
options.module = ts.ModuleKind.CommonJS; | |||
if (options.moduleResolution === undefined) { | |||
options.moduleResolution = ts.ModuleResolutionKind.Classic; |
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.
can you add a comment
👍 |
Conflicts: src/compiler/diagnosticMessages.json
Adding different module resolution strategies
Is there a description of what this is doing and how to use it please? |
@mihailik You may specify |
one thing to add, let us know if you run into issues with the new resolution logic. |
No description provided.