-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Minified lib returns an empty string #1129
Comments
This is unexpected. Could you create a fiddle demonstrating the issue? A
|
I found that problem when start preparing production version of our web app. We are using handlebars to render course quizzes to our users. And when we have updated to latest version quizzes stop to appear in html courses. After half an hour of debugging I found where was a problem when changed minified file to ordinary. Later today I will add example. |
By environment, I mean what browser or other javascript engine. |
Every, chrome 46, firefox 42, ie10-11-edge, opera 33, safari 9 and ios webview. |
Proof of concept -> http://jsfiddle.net/pmtytqoa/1/ |
Not sure what went wrong but I was able to write some tests that reproduce this failure. It appears to be specific to the full library when minimized. The runtime library works properly, at least when run in the node test environment. |
This is somehow caused by gruntjs/grunt-contrib-uglify#366. Leaving the comments in place caused something to break after minimization in a way that is not clear to me. |
Released in 4.0.5 |
Hi there,
I have found that latest version of minified handlebars.min.js surprisingly returns an empty string every time on each compile operation.
For example:
The text was updated successfully, but these errors were encountered: