Files
tsgo/testdata/baselines/reference/submodule/compiler/exportDefaultMarksIdentifierAsUsed.js

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 () { };