build: change package export to mermaid.core.mjs

`mermaid.core.mjs` should be the default export.
This is because it does not bundle `node_modules/`, allowing users of
mermaid to bundle dependencies themselves,
using Webpack/ESBuild/others.
This commit is contained in:
Alois Klink
2022-09-11 21:26:41 +01:00
parent 37aaca0090
commit 5554725f63
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import mermaid from '../../dist/mermaid';
import mermaid from '../../dist/mermaid.core.mjs';
let code = `flowchart LR
Power_Supply --> Transmitter_A