mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
previous AMD ordering was not correct
This commit is contained in:
parent
36990570c4
commit
a27a893eeb
@ -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…
x
Reference in New Issue
Block a user