mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
previous AMD ordering was not correct
This commit is contained in:
@@ -4721,9 +4721,9 @@ module ts {
|
||||
var amdDependency = {path: pathMatchResult[2], name: nameMatchResult ? nameMatchResult[2] : undefined };
|
||||
// AMD dependencies with names have to go first in define header
|
||||
if (nameMatchResult) {
|
||||
amdDependencies.push(amdDependency);
|
||||
} else {
|
||||
amdDependencies.unshift(amdDependency);
|
||||
} else {
|
||||
amdDependencies.push(amdDependency);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,6 @@ m1.f();
|
||||
///<amd-dependency path='bar' name='b'/>
|
||||
///<amd-dependency path='foo'/>
|
||||
///<amd-dependency path='goo' name='c'/>
|
||||
define(["require", "exports", "m2", "foo", "bar", "goo"], function (require, exports, m1, b, c) {
|
||||
define(["require", "exports", "m2", "goo", "bar", "foo"], function (require, exports, m1, c, b) {
|
||||
m1.f();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user