Skip to content
This repository was archived by the owner on Nov 2, 2025. It is now read-only.

Commit b4cc50a

Browse files
authored
fix(theme-mermaid): Fix Mermaid ELK layout dependency required bug on v3.9 (facebook#11437)
1 parent c3e5db1 commit b4cc50a

File tree

1 file changed

+12
-0
lines changed
  • packages/docusaurus-theme-mermaid/src

1 file changed

+12
-0
lines changed

packages/docusaurus-theme-mermaid/src/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ export default async function themeMermaid(): Promise<Plugin<void>> {
4949
),
5050
}),
5151
],
52+
53+
// Workaround for weird Rspack/SWC issue
54+
// See https://github.com/facebook/docusaurus/issues/11430
55+
resolve: {
56+
alias: {
57+
...(elkLayoutEnabled
58+
? {}
59+
: {
60+
'@mermaid-js/layout-elk': false,
61+
}),
62+
},
63+
},
5264
};
5365
},
5466
};

0 commit comments

Comments
 (0)