previous AMD ordering was not correct
This commit is contained in:
parent
36990570c4
commit
a27a893eeb
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue