webcrack
webcrack copied to clipboard
transform let declaration with 0 constantViolations to const
trafficstars
minifiers prefer let over const because it's shorter, so lets recover consts if they're never violated
cant be done with var due to the different scoping
Is there any minifier that converts const to let?
Also see https://github.com/terser/terser/issues/172 for caveats, would have to specify if the code is running at the top-level or skip it