mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
d0342a5a58
swc_common: - Use `Mutex` from `parking_lot` instead of it from std. swc_bundler: - Use `fxhash` if possible. - Don't `clone()` all modules if the entry has only one item. swc_ecma_loader: - `NodeModulesResolver`: Use `path-clean` instead of `canonicalize`. swc_ecma_transforms_optimization: - Reimplement `dce` node_bundler: - Enable `concurrent` of `swc_bundler`.
14 lines
225 B
TypeScript
14 lines
225 B
TypeScript
const water = 'Water';
|
|
function isWater1(x) {
|
|
return x === water;
|
|
}
|
|
const mod = {
|
|
water: water,
|
|
isWater: isWater1
|
|
};
|
|
function foo1(x) {
|
|
return mod[x];
|
|
}
|
|
export { foo1 as foo };
|
|
export { isWater1 as isWater };
|