24 lines
379 B
TypeScript
24 lines
379 B
TypeScript
//// [tests/cases/conformance/es6/modules/exportAndImport-es3.ts] ////
|
|
|
|
//// [m1.ts]
|
|
|
|
export default function f1() {
|
|
}
|
|
|
|
//// [m2.ts]
|
|
import f1 from "./m1";
|
|
export default function f2() {
|
|
f1();
|
|
}
|
|
|
|
|
|
//// [m1.js]
|
|
function f1() {
|
|
}
|
|
exports["default"] = f1;
|
|
//// [m2.js]
|
|
var m1_1 = require("./m1");
|
|
function f2() {
|
|
m1_1["default"]();
|
|
}
|
|
exports["default"] = f2;
|