Skip to content

fix: pre-bundle @fix-webm-duration/fix for dev recording import#2657

Merged
antfu merged 1 commit into
slidevjs:mainfrom
lazerg:fix/webm-duration-optimize-deps-2617
Jul 3, 2026
Merged

fix: pre-bundle @fix-webm-duration/fix for dev recording import#2657
antfu merged 1 commit into
slidevjs:mainfrom
lazerg:fix/webm-duration-optimize-deps-2617

Conversation

@lazerg

@lazerg lazerg commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

@fix-webm-duration/fix is a CommonJS dependency used by the client's recording logic, but unlike the sibling recordrtc dependency it wasn't added to Vite's optimizeDeps.include, so in dev it's served raw and the browser can't resolve its fixWebmDuration named export. Pre-bundling it alongside the other client CJS deps clears the runtime error without changing the import.

Fixes #2617

@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for slidev ready!

Name Link
🔨 Latest commit b734bdd
🔍 Latest deploy log https://app.netlify.com/projects/slidev/deploys/6a46b3653b4c8f000994e77e
😎 Deploy Preview https://deploy-preview-2657--slidev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@antfu
antfu merged commit 6b4b144 into slidevjs:main Jul 3, 2026
4 checks passed
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.

Slidev 52.16.0 dev server imports CJS @fix-webm-duration/fix as named ESM export

2 participants