swc/crates/swc_webpack_ast/tests/fixture/object-literal/input.js
Donny/강동윤 c2bbdbe9d6
feat(webpack): Add ast reducer (#2875)
swc_estree_compat:
 - Fix stack overflow related to object patterns.

swc_webpack_}ast:
 - Implement AST reducer.
2021-11-26 15:04:41 +09:00

12 lines
135 B
JavaScript

import { a } from "x";
import b from "y";
const d = {};
const obj = {
a,
[b]: 'foo',
c: 'bar',
d
};
console.log(obj);