Fixes https://github.com/olivernn/lunr.js/issues/324 (allowing lunr.js import as module and usage in other strict environments) by switching lunr itself to strict mode and fixing this usage.
wrapper_end was updated to the latest version of template, which uses self to access window and thus works in strict mode.
Fixes https://github.com/olivernn/lunr.js/issues/324 (allowing lunr.js import as module and usage in other strict environments) by switching lunr itself to strict mode and fixing
this
usage.wrapper_end
was updated to the latest version of template, which usesself
to access window and thus works in strict mode.lurn.utils.warn
was changed as in https://github.com/olivernn/lunr.js/pull/411.Added tests check conditional usage of console. Tests succeed in both Node and browser.