We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So far, Lunr supports module.exports for node.js but not AMD style loading like with require.js.
module.exports
It also by default creates a global variable lunr even when loaded as a module.
lunr
Wrapping the lib in a function(){}, detecting the presence of defineor exports and only using a global variable as a fallback, this can be resolved.
function(){}
define
exports
The text was updated successfully, but these errors were encountered:
4bb0a3c
No branches or pull requests
So far, Lunr supports
module.exports
for node.js but not AMD style loading like with require.js.It also by default creates a global variable
lunr
even when loaded as a module.Wrapping the lib in a
function(){}
, detecting the presence ofdefine
orexports
and only using a global variable as a fallback, this can be resolved.The text was updated successfully, but these errors were encountered: