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
I encountered an error where incorrect javascript is produced when minifed. Surprisingly it works in 9.2.0 Original code:
let a; let b; if (a) { if (b) { console.log("a and b are truthy"); } else { console.log("a is truthy, b is falsy"); } }
Incorrect code (v10.3.0-v11.0.1). If a is falsy, then console.log("a is truthy, b is falsy")' gets triggered incorrectly.
a
console.log("a is truthy, b is falsy")'
let a; let b; a && b ? console.log("a and b are truthy") : console.log("a is truthy, b is falsy");
Correct code (v9.2.0)
let a, b; a && (b ? console.log("a and b are truthy") : console.log("a is truthy, b is falsy"));
The text was updated successfully, but these errors were encountered:
feature: @putout/plugin-minify: convert-if-to-logical: ConditionalExp…
c4438f7
…ression inside IfStatement (coderaiser/minify#118)
feature: @putout/minify: @putout/plugin-minify v8.0.0 (coderaiser/min…
3fe73f2
…ify#118)
Just fixed in @putout/[email protected], please re-install Minify, is it works for you?
@putout/[email protected]
Sorry, something went wrong.
No branches or pull requests
I encountered an error where incorrect javascript is produced when minifed. Surprisingly it works in 9.2.0
Original code:
Incorrect code (v10.3.0-v11.0.1). If
a
is falsy, thenconsole.log("a is truthy, b is falsy")'
gets triggered incorrectly.Correct code (v9.2.0)
The text was updated successfully, but these errors were encountered: