mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
497 B
TypeScript
33 lines
497 B
TypeScript
//// [tests/cases/compiler/multipleModuleExportsAssignments.ts] ////
|
|
|
|
//// [x.js]
|
|
if (!!true) {
|
|
module.exports = { a: 1 };
|
|
}
|
|
else {
|
|
module.exports = { b: "hello" };
|
|
}
|
|
//// [y.js]
|
|
const x = require("./x");
|
|
const a = x.a;
|
|
const b = x.b;
|
|
|
|
|
|
//// [x.js]
|
|
"use strict";
|
|
if (!!true) {
|
|
module.exports = { a: 1 };
|
|
}
|
|
else {
|
|
module.exports = { b: "hello" };
|
|
}
|
|
//// [y.js]
|
|
"use strict";
|
|
const x = require("./x");
|
|
const a = x.a;
|
|
const b = x.b;
|
|
|
|
|
|
//// [y.d.ts]
|
|
export {};
|