swc/tests/tsc-references/externalModules/exportAssignmentTopLevelIdentifier/input.ts/es2015.1.normal/output.js
Donny/강동윤 26944e159d
fix(es/transforms/base): Reimplement hygiene (#2408)
swc_ecma_transforms_base:
 - Reimplement `hygiene`.
2021-10-21 05:12:50 +00:00

14 lines
230 B
JavaScript

// @module: amd
// @Filename: foo_0.ts
var Foo1;
(function(Foo) {
Foo.answer = 42;
})(Foo1 || (Foo1 = {
}));
module.exports = Foo1;
// @Filename: foo_1.ts
const foo = require("./foo_0");
if (foo.answer === 42) {
}
export { };