swc/ecmascript/transforms/module/tests/fixture/commonjs/issue-2297/input.js
Donny/강동윤 5e1003ec4c
fix(es/transforms/base): Fix hygiene (#2299)
swc_ecma_transforms_base:
 - `hygiene`: Support usage-def conflict where def comes first. (#2297)
2021-09-24 10:26:01 +00:00

8 lines
147 B
JavaScript

import { bar } from './Bar';
const makeX = (props) => {
const _bar = props.bar;
const { list } = _bar;
return list.map(() => bar);
};