31 lines
697 B
TypeScript
31 lines
697 B
TypeScript
//// [tests/cases/conformance/es6/modules/exportAndImport-es5-amd.ts] ////
|
|
|
|
//// [m1.ts]
|
|
|
|
export default function f1() {
|
|
}
|
|
|
|
//// [m2.ts]
|
|
import f1 from "./m1";
|
|
export default function f2() {
|
|
f1();
|
|
}
|
|
|
|
|
|
//// [m1.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
"use strict";
|
|
function f1() {
|
|
}
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = f1;
|
|
});
|
|
//// [m2.js]
|
|
define(["require", "exports", "./m1"], function (require, exports, m1_1) {
|
|
"use strict";
|
|
function f2() {
|
|
m1_1.default();
|
|
}
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = f2;
|
|
});
|