Remove CJS builds from docs

This commit is contained in:
Sidharth Vinod
2023-02-19 00:58:36 +05:30
parent c1aad5975c
commit 45adc5fb6b
6 changed files with 10 additions and 18 deletions

View File

@@ -466,7 +466,9 @@ Timeline uses experimental lazy loading & async rendering features which could c
You can use this method to add mermaid including the timeline diagram to a web page:
```html
<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
</script>
```
Note that more complex integrations that the **render** function directly need to use the **renderAsync** method instead in order to render timeline.