Skip to content

fix(docs): prebundle fastdom for Mermaid - #567

Merged
antfu merged 1 commit into
mainfrom
fix/docs
Sep 10, 2026
Merged

fix(docs): prebundle fastdom for Mermaid#567
antfu merged 1 commit into
mainfrom
fix/docs

Conversation

@yuyinws

@yuyinws yuyinws commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Description

Running pnpm docs currently and open browser fails with:

image
Uncaught SyntaxError: The requested module '/node_modules/.pnpm/fastdom@1.0.12/node_modules/fastdom/fastdom.js?v=5c4dc56b' does not provide an export named 'default' (at bisector.js:56:1)

This PR adds fastdom and fastdom/extensions/fastdom-promised.js to Vite’s dependency optimization list.

upstream issue: emersonbottero/vitepress-plugin-mermaid#98

@pkg-pr-new

pkg-pr-new Bot commented Sep 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/@vitejs/devtools@567

@vitejs/devtools-kit

npm i https://pkg.pr.new/@vitejs/devtools-kit@567

@vitejs/devtools-oxc

npm i https://pkg.pr.new/@vitejs/devtools-oxc@567

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/@vitejs/devtools-rolldown@567

@vitejs/devtools-vite

npm i https://pkg.pr.new/@vitejs/devtools-vite@567

@vitejs/devtools-vitest

npm i https://pkg.pr.new/@vitejs/devtools-vitest@567

commit: 86a607a

@antfu
antfu merged commit ba659d8 into main Sep 10, 2026
9 of 10 checks passed
@antfu
antfu deleted the fix/docs branch September 10, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants