swc/bundler/tests/fixture/deno-9560/case1/output/entry.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

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 };