Closed adrianheine closed 4 years ago
From rollup/rollup-plugin-buble#9:
function test(state, action) { return { ...state, [action.page]: { ...state[action.page], [action.key]: action.value } }; } console.log(test({}, { page: "z", key: "x", value: "y" })); // => { z: { x: 'y' } }
bublé mixes up the closing parentheses like this:
function test(state, action) { var obj, obj$1; return Object.assign({}, state, ( obj$1 = {}, obj$1[action.page] = Object.assign({}, state[action.page], ( obj = {}, obj[action.key] = action.value, obj ), obj$1 ))); } console.log(test({}, { page: "z", key: "x", value: "y" })); // => { x: 'y' }
From rollup/rollup-plugin-buble#9:
bublé mixes up the closing parentheses like this: