You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a problem where after concat/minification, TokenStore.prototype.toJSON was an object, not a function. Weird, huh?
I did some digging and found that lunr was concatted into my lib file directly before another script that was using an anonymous function to avoid polluting global. Looked something like this:
Anyway, I got around it by changing my grunt config to use semicolon as a file separator, but it may be worthwhile to add semicolons directly in lunr.js to save some others some very weird debugging.
The text was updated successfully, but these errors were encountered:
Hi there,
I encountered a problem where after concat/minification, TokenStore.prototype.toJSON was an object, not a function. Weird, huh?
I did some digging and found that lunr was concatted into my lib file directly before another script that was using an anonymous function to avoid polluting global. Looked something like this:
Should have looked like this:
Anyway, I got around it by changing my grunt config to use semicolon as a file separator, but it may be worthwhile to add semicolons directly in lunr.js to save some others some very weird debugging.
The text was updated successfully, but these errors were encountered: