Skip to content

Conversation

@irnc
Copy link

@irnc irnc commented May 14, 2022

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

lurn.utils.warn was changed as in #411.

Added tests check conditional usage of console. Tests succeed in both Node and browser.

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

`lurn.utils.warn` was changed as in #411

Tests added work both in Node and browser.
@irnc irnc closed this by deleting the head repository Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

global is undefined in strict mode

1 participant