mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
moved AMD module sorting to emitter, updated test case
This commit is contained in:
1 parent
a27a893eeb
commit
8492dfdffd
3 files changed
+16
-7
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user