Skip to content

fix(rrweb-player): resolve Svelte browser runtime - #1879

Open
cyphercodes wants to merge 1 commit into
rrweb-io:mainfrom
cyphercodes:fix-1872-rrweb-player-browser-runtime
Open

fix(rrweb-player): resolve Svelte browser runtime#1879
cyphercodes wants to merge 1 commit into
rrweb-io:mainfrom
cyphercodes:fix-1872-rrweb-player-browser-runtime

Conversation

@cyphercodes

Copy link
Copy Markdown

Summary

Fixes #1872.

This updates the rrweb-player Vite build to resolve Svelte lifecycle APIs through the browser condition. That keeps the production dist bundle on the browser runtime so the player creates its Replayer/controller correctly.

Test Plan

  • yarn workspace rrweb-player test
  • yarn workspace rrweb-player build
  • yarn workspace rrweb-player check-types (passes with existing Svelte warnings)
  • git diff --check

@changeset-bot

changeset-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2e64126

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 22 packages
Name Type
rrweb-player Patch
rrweb Patch
rrweb-snapshot Patch
rrdom Patch
rrdom-nodejs Patch
@rrweb/all Patch
@rrweb/replay Patch
@rrweb/record Patch
@rrweb/types Patch
@rrweb/packer Patch
@rrweb/utils Patch
@rrweb/browser-client Patch
@rrweb/web-extension Patch
rrvideo Patch
@rrweb/rrweb-plugin-console-record Patch
@rrweb/rrweb-plugin-console-replay Patch
@rrweb/rrweb-plugin-sequential-id-record Patch
@rrweb/rrweb-plugin-sequential-id-replay Patch
@rrweb/rrweb-plugin-canvas-webrtc-record Patch
@rrweb/rrweb-plugin-canvas-webrtc-replay Patch
@rrweb/rrweb-plugin-network-record Patch
@rrweb/rrweb-plugin-network-replay Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

[Bug]: rrweb-player 2.0.0 & 2.0.1 published dist is broken — Replayer is never created, play() throws controller.play of undefined

1 participant