swc/bundler/tests/fixture/deno-8625/output/entry.inlined.ts
강동윤 c047e0e54d
fix(bundler): Fix bundler (#1427)
swc_bundler:
 - Create variables for export while preparing a module. (denoland/deno#9560)
 - Fix order of statements.
 - Invoke dce multiple time if required. (denoland/deno#9546)

swc_ecma_transforms_optimization:
 - dce: Track modifications correctly.
2021-02-26 18:21:42 +09:00

11 lines
162 B
TypeScript

function Foo(name) {
return 'foo' + name;
}
const mod = function() {
return {
Foo: Foo
};
}();
const bar = Foo('bar');
console.log(mod, bar);