moved AMD module sorting to emitter, updated test case

This commit is contained in:
togru
2015-02-10 10:28:09 +01:00
parent a27a893eeb
commit 8492dfdffd
3 changed files with 16 additions and 7 deletions
+1 -6
View File
@@ -4719,12 +4719,7 @@ module ts {
var nameMatchResult = nameRegex.exec(comment);
if (pathMatchResult) {
var amdDependency = {path: pathMatchResult[2], name: nameMatchResult ? nameMatchResult[2] : undefined };
// AMD dependencies with names have to go first in define header
if (nameMatchResult) {
amdDependencies.unshift(amdDependency);
} else {
amdDependencies.push(amdDependency);
}
amdDependencies.push(amdDependency);
}
}
}