mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +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.
16 lines
266 B
TypeScript
16 lines
266 B
TypeScript
const water = 'Water';
|
|
function isWater1(x) {
|
|
return x === water;
|
|
}
|
|
const mod = function() {
|
|
return {
|
|
water: water,
|
|
isWater: isWater1
|
|
};
|
|
}();
|
|
function foo1(x) {
|
|
return mod[x];
|
|
}
|
|
export { foo1 as foo };
|
|
export { isWater1 as isWater };
|