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.
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.