-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
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
JS minify error: too many nested expressions #451
Comments
This appears to be a regression introduced in v2.9.17. |
Thanks Joe, I'm on it! |
Looks like it is not so much a bug, but a hard limit to prevent abuse. The problem is that the file in question has an expression of comma-operators that has more than 1000 elements (ie. The solution is to parse comma-operators as a list and not a tree. |
Should be fixed now, please advice if you run into additional problems |
Thanks! |
@tdewolff I'm facing this issue in the latest release (2.21.1):
Please check this! |
That is a huge concatenation of member operators (dot operators). I don't think this could be fixed like we did with the comma operator. But perhaps we could make the ExprLimit a variable you can change. Let me see if I can get this in this week. |
I've added this in the |
Tested with v2.9.27.
test.js.txt
Reference:
https://discourse.gohugo.io/t/build-failure-with-0-92/36523
The text was updated successfully, but these errors were encountered: