711b4e778b
* Indirect calls for imported functions * Fix unit tests
32 lines
971 B
TypeScript
32 lines
971 B
TypeScript
//// [tests/cases/conformance/es6/moduleExportsAmd/outFilerootDirModuleNamesAmd.ts] ////
|
|
|
|
//// [a.ts]
|
|
import foo from "./b";
|
|
export default class Foo {}
|
|
foo();
|
|
|
|
//// [b.ts]
|
|
import Foo from "./a";
|
|
export default function foo() { new Foo(); }
|
|
|
|
// https://github.com/microsoft/TypeScript/issues/37429
|
|
import("./a");
|
|
|
|
//// [output.js]
|
|
define("b", ["require", "exports", "a"], function (require, exports, a_1) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
function foo() { new a_1.default(); }
|
|
exports.default = foo;
|
|
// https://github.com/microsoft/TypeScript/issues/37429
|
|
new Promise((resolve_1, reject_1) => { require(["a"], resolve_1, reject_1); });
|
|
});
|
|
define("a", ["require", "exports", "b"], function (require, exports, b_1) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
class Foo {
|
|
}
|
|
exports.default = Foo;
|
|
(0, b_1.default)();
|
|
});
|