!((
input,
processed = {
foo: 1,
...input
}
) => {
window.console.log(processed)
})({
bar: 2 // input configuration
})
gets minified to:
((t, e = {
foo: 1,
bar: 2
}) => {
window.console.log(e);
})();
I need that input
parameter for later configuration
Question: How to maintain the original pattern?
Terser output I need:
((t, e = {
foo: 1,
...t
}) => {
window.console.log(e);
})({bar: 2});
Update after comment:
let input1 = { bar:2 }
!((
input,
processed = {
foo: 1,
...input
}
) => {
window.console.log(processed)
})( input1 )
outputs:
((t, e = {
foo: 1,
...t
}) => {
window.console.log(e);
})({
bar: 2
});