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'm using uglifyjs to minify user code transpiled in javascript by another algorythm that produces javascript expressions.
Everything works until the generated javascript is a plain string with no other operations.
Trying to minify a plain string result in an empty string output.
Uglify version (3.15.1)
3.15.1
JavaScript input : "my string"
"my string"
minify(js, { mangle: false, compress: { expression: true } })
Output : ""
""
Expected Output : "my string"
My current workaround is injecting + "" before minifying generated javascript when the output is a plain string
+ ""
The text was updated successfully, but these errors were encountered:
Thanks for the detailed report.
Confirmed as a regression since uglify-js@3.4.3 caused by 76df77c − investigating.
uglify-js@3.4.3
Sorry, something went wrong.
fix corner case in directives & expression
directives
expression
6b908e5
fixes mishoo#5368
fix corner case in directives & expression (#5369)
a9d0dde
fixes #5368
Fix released in uglify-js@3.15.2
uglify-js@3.15.2
Successfully merging a pull request may close this issue.
I'm using uglifyjs to minify user code transpiled in javascript by another algorythm that produces javascript expressions.
Everything works until the generated javascript is a plain string with no other operations.
Trying to minify a plain string result in an empty string output.
Uglify version (
3.15.1
)JavaScript input :
"my string"
minify(js, { mangle: false, compress: { expression: true } })
Output :
""
Expected Output :
"my string"
My current workaround is injecting
+ ""
before minifying generated javascript when the output is a plain stringThe text was updated successfully, but these errors were encountered: