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 have a issue with split_lines. After splitting (and before inserting comments) code became:
split_lines
code,code,"yUglify: preserved comment block" ,code,code
I.e. code wraps right after comment. After than replacing comments replaces "preserved comment block" without comma. As a result code become:
code,code, /* comment */ ,code,code
I.e. two commas are following each other (with comment between). This causes the error.
You should swap split_lines and code.replace(reTokens, …).
code.replace(reTokens, …)
The text was updated successfully, but these errors were encountered:
I'm seeing a similar problem here with yuglify@0.1.4:
yuglify@0.1.4
a(); /*!*/ if (a) { throw a; }
The above gets minified to this, which is not valid JavaScript:
a(), /*!*/ ;if(a)throw a
Sorry, something went wrong.
Running into something similar. Still diving in to the details here, but I wonder if #17 would be an alternate fix?
migrate to UglifyJS v3 and use its comment preservation feature inste…
32e2921
…ad of a custom regex one. this should fix a number of open issues (probably yui#19 and yui#20; not sure about yui#21)
No branches or pull requests
I have a issue with
split_lines
. After splitting (and before inserting comments) code became:I.e. code wraps right after comment. After than replacing comments replaces "preserved comment block" without comma. As a result code become:
I.e. two commas are following each other (with comment between). This causes the error.
You should swap
split_lines
andcode.replace(reTokens, …)
.The text was updated successfully, but these errors were encountered: