wrapper_end 873 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * export the module via AMD, CommonJS or as a browser global
  3. * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
  4. */
  5. ;(function (root, factory) {
  6. if (typeof define === 'function' && define.amd) {
  7. // AMD. Register as an anonymous module.
  8. define(factory)
  9. } else if (typeof exports === 'object') {
  10. /**
  11. * Node. Does not work with strict CommonJS, but
  12. * only CommonJS-like enviroments that support module.exports,
  13. * like Node.
  14. */
  15. module.exports = factory()
  16. } else {
  17. // Browser globals (root is window)
  18. root.lunr = factory()
  19. }
  20. }(this, function () {
  21. /**
  22. * Just return a value to define the module export.
  23. * This example returns an object, but the module
  24. * can return a function as the exported value.
  25. */
  26. return lunr
  27. }))
  28. })();