moved AMD module sorting to emitter, updated test case · msprotz/TypeScript@8492dfd · GitHub
Skip to content

Commit 8492dfd

Browse files
committed
moved AMD module sorting to emitter, updated test case
1 parent a27a893 commit 8492dfd

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

src/compiler/emitter.ts

Lines changed: 14 additions & 0 deletions

src/compiler/parser.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4719,12 +4719,7 @@ module ts {
47194719
var nameMatchResult = nameRegex.exec(comment);
47204720
if (pathMatchResult) {
47214721
var amdDependency = {path: pathMatchResult[2], name: nameMatchResult ? nameMatchResult[2] : undefined };
4722-
// AMD dependencies with names have to go first in define header
4723-
if (nameMatchResult) {
4724-
amdDependencies.unshift(amdDependency);
4725-
} else {
4726-
amdDependencies.push(amdDependency);
4727-
}
4722+
amdDependencies.push(amdDependency);
47284723
}
47294724
}
47304725
}

tests/baselines/reference/amdDependencyCommentName3.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)