Leo Developer

Results 78 comments of Leo Developer
trafficstars

Update: if I don't call `applyTransforms` with `path.node` (instead of just `path.node.test` which would be more efficient), it just doesn't match the root UnaryExpression for some reason. 🤷

This should be possible to safely implement by renaming the 3rd argument to a unused variable. Also anything is unsafe if you consider the fact that functions can just be...

> toString() is one of the few exceptions because all build tools, obfuscators, formatters, etc ignore it as well. Well there's 3 cases in regards to `f.length`: 1. the obfuscator...

Theres no context, an obfuscator does this and it‘s interfering with webcrack because it only scans for VariableDeclaration, not these AssigntmentExpressions. Since theres a lot of edge cases, I’m currently...

> Is there any minifier that converts const to let? [SWC](https://play.swc.rs/?version=1.11.13&code=H4sIAAAAAAAAA1NMK81LLsnMz9PQVKjmUgCC5Py84hKFCgVbhehYuEB%2BTqpeTn66RoWOAhakyVWroQkAz1F2vEoAAAA%3D&config=H4sIAAAAAAAAA32UO3LjMAyGe5%2FCozrFjostcoDt9gwcWgRlJhKhIUDbmozvvqAetjcG04n4AIH88fja7ffNB7XN%2B%2F5LPuUw2kSQ7mex0BTZXsXS8DQCtSmM3LxtlKkgb3uC2XRbSMM2dcAlCujw63BYI5oekWCLWG1DiMFPzzlbHMYERE82scov8wCRi5lThrdnlPCi2I%2BIPdj4AzGWTIgMHSTFq8W%2BtyOBOVsdDyJYINQyFJgZnBkTjiqPLnDAKFK8UgfWmRYdKCgkaDmcQQuTXBIWSV73v8wP7OCYu26u8rdoONs%2BW1ZywnUuiNz2lZ0wEBufZxG%2BZ1xgRYIF6toGbxJwTkrCDwyxEvUJIO%2FvLVG0A2gXmj289FIt2v8YGaKXduVJ4dLb2iMjdCKpCcEruhZhIHHQapnA5RaKsG2d6jJQcGDAe%2BkTjV4CtyctZRlx9AqQ4lrt%2Fovd1OZvxWUU6vSPPJDVzlodBsunKqRpOKI2QVsw8AldnUsFGKs0yWK4jlWcowPpB3CaRybNXoaTDaPp5%2F340g8yEfJD0%2FV4fCyG1eF237uDjd1jwpfVu1sdmgFdnuG61EtVl1X8u3k4bVv33sZNoL9bpFz%2FM%2BIlNrvbP4nfTeIlBgAA) (but not top-level)

My initial assumption also was that it's due to the AssignmentExpressions instead of the VariableDeclarations but even after modifying the script to use `var` it's still failing. Simplified the initial...

Nvm, looks like only the web version is failing. Works locally