mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
281 B
TypeScript
16 lines
281 B
TypeScript
// @module: commonjs
|
|
// @declaration: true
|
|
// @checkJs: true
|
|
// @outDir: ./out
|
|
// @filename: x.js
|
|
if (!!true) {
|
|
module.exports = { a: 1 };
|
|
}
|
|
else {
|
|
module.exports = { b: "hello" };
|
|
}
|
|
// @filename: y.js
|
|
const x = require("./x");
|
|
const a = x.a;
|
|
const b = x.b;
|