diff --git a/documentation/md/getting-started.md b/documentation/md/getting-started.md index 38770dcfd..1e03f25fd 100644 --- a/documentation/md/getting-started.md +++ b/documentation/md/getting-started.md @@ -31,9 +31,9 @@ The available files are available under [`cytoscape/dist/`](https://github.com/c | --- | --- | --- | --- | | `cytoscape.min.js` | yes | [UMD] (Universal Module Definition) | For use with globals or `require()`. | | `cytoscape.umd.js` | no | [UMD] | For debugging with globals or `require()`. | -| `cytoscape.esm.min.js` | yes | [ESM] (ECMAScript, uses `import` / `export`) | For use with modern `import`/`export`, i.e. `import cytoscape from 'cytoscape'`. | +| `cytoscape.esm.min.mjs` | yes | [ESM] (ECMAScript, uses `import` / `export`) | For use with modern `import`/`export`, i.e. `import cytoscape from 'cytoscape'`. | | `cytoscape.cjs.js` | no | [CJS] (CommonJS, used by [Node.js]) | Intended to be consumed automatically by [Node.js] or a bundler like [Webpack] via `require('cytoscape')`. | -| `cytoscape.esm.js` | no | [ESM] | Intended to be consumed automatically by [Node.js] or a bundler like [Webpack] via `import cytoscape from 'cytoscape'`. This file may alternatively be used for manually debugging ESM builds or pages that use ESM. | +| `cytoscape.esm.mjs` | no | [ESM] | Intended to be consumed automatically by [Node.js] or a bundler like [Webpack] via `import cytoscape from 'cytoscape'`. This file may alternatively be used for manually debugging ESM builds or pages that use ESM. | Note that Cytoscape.js uses the dimensions of your HTML DOM element container for layouts and rendering at initialisation. Thus, it is very important to place your CSS stylesheets in the `` before any Cytoscape.js-related code. Otherwise, dimensions may be sporadically reported incorrectly, resulting in undesired behaviour.