swc/ecmascript/transforms/optimization/tests/expr-simplifier/issue-1901/case1/input.js
강동윤 204a71ca94
fix(es/transforms): Fix bugs (#1950)
swc_ecma_trasnsforms_base:
 - `fixer`: Don't de-optimize `++foo || bar`.

swc_ecma_trasnsforms_typescript:
 - Allow using properties from a decorated class. (#1869)

swc_ecma_transforms_optimization:
 - Fix infinite loop. (#1901, #1946)
2021-07-22 07:33:00 +00:00

5 lines
95 B
JavaScript

const object = { a: true }
export const mapContextToProps = () => {
return { ...object }
}