mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
26944e159d
swc_ecma_transforms_base: - Reimplement `hygiene`.
14 lines
230 B
JavaScript
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 { };
|