Skip to content

Commit

Permalink
5043 Register internal diagrams before external
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Nov 19, 2023
1 parent b5f3cdc commit 927217d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/mermaid/src/mermaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { isDetailedError } from './utils.js';
import type { DetailedError } from './utils.js';
import type { ExternalDiagramDefinition } from './diagram-api/types.js';
import type { UnknownDiagramError } from './errors.js';
import { addDiagrams } from './diagram-api/diagram-orchestration.js';

export type {
MermaidConfig,
Expand Down Expand Up @@ -243,6 +244,7 @@ const registerExternalDiagrams = async (
lazyLoad?: boolean;
} = {}
) => {
addDiagrams();
registerLazyLoadedDiagrams(...diagrams);
if (lazyLoad === false) {
await loadRegisteredDiagrams();
Expand Down

0 comments on commit 927217d

Please sign in to comment.