mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
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:
@@ -1,4 +1,4 @@
|
||||
import mermaid from '../../dist/mermaid';
|
||||
import mermaid from '../../dist/mermaid.core.mjs';
|
||||
|
||||
let code = `flowchart LR
|
||||
Power_Supply --> Transmitter_A
|
||||
|
Reference in New Issue
Block a user