mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
4294b5e7ba
swc_bundler: - Bundler rework. (denoland/deno#6802) - Reexports are not transitive. (denoland/deno#8246) - Dependencies of module with circular dependency. (denoland/deno#8302) - Order of injection between import vs export. (denoland/deno#8302) - `export *` in wrapped modules. (denoland/deno#8308, denoland/deno#8399) - `export { a as b }` in wrapped modules. - Fix denoland/deno#8314. - Fix denoland/deno#8325. - Fix denoland/deno#8344. - Make deno test verify exported names. - Handle `export * from './foo'`. swc_ecma_parser: - Don't panic on private name in interface (Closes #1211) swc_ecma_transforms: - dce: Prevent infinite loop - Faster constant propagation pass.
21 lines
292 B
JavaScript
21 lines
292 B
JavaScript
const a = 1;
|
|
const a1 = a;
|
|
const b = 2;
|
|
const b1 = b;
|
|
const a2 = a1;
|
|
const c = 3;
|
|
class A {
|
|
}
|
|
const A1 = A;
|
|
const c1 = c;
|
|
const b2 = b1;
|
|
const A2 = A1;
|
|
console.log(b2, A2);
|
|
const c2 = c1;
|
|
const A3 = A1;
|
|
console.log(c2, A3);
|
|
const A4 = A1;
|
|
console.log(a2, A4);
|
|
const a3 = a1;
|
|
console.log(a3);
|