mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
463 B
TypeScript
21 lines
463 B
TypeScript
//// [tests/cases/conformance/es6/moduleExportsCommonjs/defaultExportsGetExportedCommonjs.ts] ////
|
|
|
|
//// [a.ts]
|
|
export default class Foo {}
|
|
|
|
//// [b.ts]
|
|
export default function foo() {}
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
class Foo {
|
|
}
|
|
exports.default = Foo;
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = foo;
|
|
function foo() { }
|