We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minimize this code
for(let n=0;n<0;n++){Z((5+n)*8,5*8)}
with this code
fn main() { let mut o = vec![]; minify_js::minify( &Session::new(), minify_js::TopLevelMode::Global, b"for(let n=0;n<0;n++){Z((5+n)*8,5*8)}", &mut o, ) .unwrap(); dbg!(String::from_utf8(o).unwrap()); }
and you get
for(let a=b;a<b;a++){Z((c+ a)*d,c*d)}
which fails with
Uncaught ReferenceError: b is not defined
The text was updated successfully, but these errors were encountered:
I am having the same issue. I use minify-js via minify-html. I have a function
function convertCtoF(val) { return Math.round((val * 1.8 + 32) * 10) / 10; }
and it gets minified to var convertCtoF = (a => Math.round((a * 1.8 + 32) * b) / b); and I am having Uncaught ReferenceError: b is not defined
var convertCtoF = (a => Math.round((a * 1.8 + 32) * b) / b);
Sorry, something went wrong.
Running into the same problem, turning
const getOpposite = (language) => language == "teal" ? "lua" : "teal"
into
const getOpposite = (a) => (a == b ? `lua` : b);
No branches or pull requests
minimize this code
with this code
and you get
which fails with
The text was updated successfully, but these errors were encountered: