Closed ybouane closed 11 months ago
Just fixed in @putout/minify@2.9.0
π. Is it working for you now?
There still seems to be issues, here's another example:
import { minify } from "@putout/minify";
console.log(
minify(`
let aaa = 5;
fn((a, b)=>{
console.log(b, aaa);
});
`),
);
it minifies it to:
let a=5;fn((a,b)=>console.log(b,a));
Just fixed in @putout/minify@2.10.0 π. Is it working for you now?
Yes, it seems to be working! Here's another case that can be further improved:
import { minify } from "@putout/minify";
console.log(
minify(`
let aaa = 5;
fn(()=>{
console.log(aaa, a);
});
`),
);
outputs:
let a=5;fn(()=>console.log(a,a));
Just fixed in @putout/minify@2.11.0 π. Is it working for you now?
Perfect!
This code:
Outputs:
aaaaa is renamed into a but in the callback function, the argument a isn't renamed into something different.