index-all.js 809 B

12345678910111213141516171819
  1. // ESM Exports
  2. // ===========
  3. // This module is the package entry point for ES module users. In other words,
  4. // it is the module they are interfacing with when they import from the whole
  5. // package instead of from a submodule, like this:
  6. //
  7. // ```js
  8. // import { map } from 'underscore';
  9. // ```
  10. //
  11. // The difference with `./index-default`, which is the package entry point for
  12. // CommonJS, AMD and UMD users, is purely technical. In ES modules, named and
  13. // default exports are considered to be siblings, so when you have a default
  14. // export, its properties are not automatically available as named exports. For
  15. // this reason, we re-export the named exports in addition to providing the same
  16. // default export as in `./index-default`.
  17. export { default } from './index-default.js';
  18. export * from './index.js';