swc/bundler/tests/fixture/deno-8302-1/output/entry.js
강동윤 947161b43b
fix(bundler): Fix bugs (#1349)
swc_bundler:
 - Fix deglobbing of imports. (denoland/deno#8985)
 - Use correct syntax context while deglobbing imports. (denoland/deno#9212)
 - Allow reexporting from wrapped esms. (denoland/deno#8959, denoland/deno#9200)
 - Fix statement orderings. (denoland/deno#9250)
 - Emit injected items as early as possible. (denoland/deno#9250)
 - Respect `external_modules`. (#1338)
 - Fix cjs suppport. (#1328)

swc_ecma_transforms_base:
 - hygiene: Fix for hoisting. (denoland/deno#9212)
2021-01-25 21:15:42 +09:00

21 lines
292 B
JavaScript

const b = 2;
const b1 = b;
const b2 = b1;
class A {
}
const A1 = A;
const A2 = A1;
const A3 = A1;
const A4 = A1;
console.log(b2, A4);
const a = 1;
const a1 = a;
const a2 = a1;
const a3 = a1;
console.log(a3, A2);
const c = 3;
const c1 = c;
const c2 = c1;
console.log(c2, A3);
console.log(a2);