swc/bundler/tests/fixture/issue-1155-1-fn/output/entry.ts
강동윤 23aebacade
fix(bundler): Fix bundler (#1318)
swc_bundler:
 - Use two-context system properly.
 - Remove old logic.
 - keywords: Handle assignment pattern property.
 - keywords: Handle shorthand property.
 - keywords: Handle identifiers in declarations.

swc_ecma_transforms_typescript:
 - Do not remove import if there's non-type usage. (Related to denoland/deno#8978)

swc_ecma_transforms_optimization:
 - dce: Handle new expression correctly.
2021-01-11 19:38:20 +09:00

11 lines
115 B
TypeScript

function a() {
console.log("a");
}
const a1 = a;
const a2 = a1;
const a3 = a2;
function b() {
a3();
}
b();