Open CreepyGnome opened 3 years ago
This line of code breaks the minifier:
result.data.reduce((a,x) => ({...a, [x.Id]: x}), {});
It doesn't like one or all of those various brackets to the right of the fat arrow.
Gives this output:
Expected ')': ... Expected ')': ... Expected ';' Expected ';' Expected expression: : Expected ';' Expected expression: ) Expected expression: , Expected identifier: ( Expected expression: ) Expected ')': }
When not minified everything works, not sure why this isn't supported as it is valid JS.
Fails with the above errors
Minify the valid line of JS.
Installed product versions
Description
This line of code breaks the minifier:
result.data.reduce((a,x) => ({...a, [x.Id]: x}), {});
It doesn't like one or all of those various brackets to the right of the fat arrow.
Gives this output:
When not minified everything works, not sure why this isn't supported as it is valid JS.
Steps to recreate
result.data.reduce((a,x) => ({...a, [x.Id]: x}), {});
Current behavior
Fails with the above errors
Expected behavior
Minify the valid line of JS.