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