30 lines
509 B
TypeScript
30 lines
509 B
TypeScript
//// [tests/cases/conformance/es6/modules/multipleDefaultExports02.ts] ////
|
|
|
|
//// [m1.ts]
|
|
|
|
export default function foo() {
|
|
|
|
}
|
|
|
|
export default function bar() {
|
|
|
|
}
|
|
|
|
//// [m2.ts]
|
|
import Entity from "m1"
|
|
|
|
Entity();
|
|
|
|
//// [m1.js]
|
|
function foo() {
|
|
}
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = foo;
|
|
function bar() {
|
|
}
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = bar;
|
|
//// [m2.js]
|
|
var m1_1 = require("m1");
|
|
m1_1.default();
|