mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 05:17:43 -05:00
Move amd-dependency erlier in the list
This commit is contained in:
@@ -4652,6 +4652,18 @@ var __param = this.__param || function(index, decorator) { return function (targ
|
||||
let aliasedModuleNames: string[] = [];
|
||||
let unaliasedModuleNames: string[] = [];
|
||||
let importAliasNames: string[] = [];
|
||||
|
||||
// Fill in amd-dependency tags
|
||||
for (let amdDependency of node.amdDependencies) {
|
||||
if (amdDependency.name) {
|
||||
aliasedModuleNames.push("\"" + amdDependency.path + "\"");
|
||||
importAliasNames.push(amdDependency.name);
|
||||
}
|
||||
else {
|
||||
unaliasedModuleNames.push("\"" + amdDependency.path + "\"");
|
||||
}
|
||||
}
|
||||
|
||||
for (let importNode of externalImports) {
|
||||
// Find the name of the external module
|
||||
let externalModuleName = "";
|
||||
@@ -4678,17 +4690,6 @@ var __param = this.__param || function(index, decorator) { return function (targ
|
||||
unaliasedModuleNames.push(externalModuleName);
|
||||
}
|
||||
}
|
||||
|
||||
// Fill in amd-dependency tags
|
||||
for (let amdDependency of node.amdDependencies) {
|
||||
if (amdDependency.name) {
|
||||
aliasedModuleNames.push("\"" + amdDependency.path + "\"");
|
||||
importAliasNames.push(amdDependency.name);
|
||||
}
|
||||
else {
|
||||
unaliasedModuleNames.push("\"" + amdDependency.path + "\"");
|
||||
}
|
||||
}
|
||||
|
||||
writeLine();
|
||||
write("define(");
|
||||
|
||||
Reference in New Issue
Block a user