Skip to content

Commit 2da9576

Browse files
docs: fix dev mode (#1343)
docs in dev mode failed to start before, adding CJS-only `sanitize-url` to the optimized deps should fix this. Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
1 parent 0c1277c commit 2da9576

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/.vitepress/config.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ export default extendConfig(
109109
],
110110
],
111111
vite: {
112+
optimizeDeps: {
113+
include: ['mermaid > @braintree/sanitize-url'],
114+
},
112115
resolve: {
113116
tsconfigPaths: true,
114117
alias: [

0 commit comments

Comments
 (0)