index.js 605 B

123456789101112131415
  1. /* eslint-disable functional/immutable-data, import/no-commonjs */
  2. const algoliasearch = require('./dist/algoliasearch.cjs.js');
  3. /**
  4. * The Common JS build is the default entry point for the Node environment. Keep in
  5. * in mind, that for the browser environment, we hint the bundler to use the UMD
  6. * build instead as specified on the key `browser` of our `package.json` file.
  7. */
  8. module.exports = algoliasearch;
  9. /**
  10. * In addition, we also set explicitly the default export below making
  11. * this Common JS module in compliance with es6 modules specification.
  12. */
  13. module.exports.default = algoliasearch;