mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
366 B
TypeScript
17 lines
366 B
TypeScript
//// [tests/cases/compiler/exportDefaultClassAndValue.ts] ////
|
|
|
|
//// [exportDefaultClassAndValue.ts]
|
|
const foo = 1
|
|
export default foo
|
|
export default class Foo {}
|
|
|
|
|
|
//// [exportDefaultClassAndValue.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const foo = 1;
|
|
exports.default = foo;
|
|
class Foo {
|
|
}
|
|
exports.default = Foo;
|