mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
c047e0e54d
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.
11 lines
162 B
TypeScript
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);
|