|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
809 bytes
|
| Line | |
|---|
| 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';
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.