1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
//// [tests/cases/compiler/systemModule15.ts] ////
//// [file1.ts]
import * as moduleB from "./file2"
declare function use(v: any): void;
use(moduleB.value);
use(moduleB.moduleC);
use(moduleB.moduleCStar);
//// [file2.ts]
import * as moduleCStar from "./file3"
import {value2} from "./file4"
import moduleC from "./file3"
import {value} from "./file3"
export {
moduleCStar,
moduleC,
value
}
//// [file3.ts]
export var value = "youpi";
export default value;
//// [file4.ts]
export var value2 = "v";
//// [file3.js]
System.register([], function (exports_1, context_1) {
"use strict";
var value;
var __moduleName = context_1 && context_1.id;
return {
setters: [],
execute: function () {
exports_1("value", value = "youpi");
exports_1("default", value);
}
};
});
//// [file4.js]
System.register([], function (exports_1, context_1) {
"use strict";
var value2;
var __moduleName = context_1 && context_1.id;
return {
setters: [],
execute: function () {
exports_1("value2", value2 = "v");
}
};
});
//// [file2.js]
System.register(["./file3"], function (exports_1, context_1) {
"use strict";
var moduleCStar, file3_1, file3_2;
var __moduleName = context_1 && context_1.id;
return {
setters: [
function (moduleCStar_1) {
moduleCStar = moduleCStar_1;
file3_1 = moduleCStar_1;
file3_2 = moduleCStar_1;
}
],
execute: function () {
exports_1("moduleCStar", moduleCStar);
exports_1("moduleC", file3_1["default"]);
exports_1("value", file3_2.value);
}
};
});
//// [file1.js]
System.register(["./file2"], function (exports_1, context_1) {
"use strict";
var moduleB;
var __moduleName = context_1 && context_1.id;
return {
setters: [
function (moduleB_1) {
moduleB = moduleB_1;
}
],
execute: function () {
use(moduleB.value);
use(moduleB.moduleC);
use(moduleB.moduleCStar);
}
};
});
|