mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
947161b43b
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)
21 lines
292 B
JavaScript
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);
|