mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
636 B
TypeScript
24 lines
636 B
TypeScript
//// [tests/cases/compiler/exportDefaultMarksIdentifierAsUsed.ts] ////
|
|
|
|
//// [a.js]
|
|
const Obj = {};
|
|
export default Obj;
|
|
//// [b.js]
|
|
import Obj from './a';
|
|
|
|
Obj.fn = function() {};
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const Obj = {};
|
|
exports.default = Obj;
|
|
//// [b.js]
|
|
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const a_1 = __importDefault(require("./a"));
|
|
a_1.default.fn = function () { };
|