Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Aug 8, 2025

Fixed #31605.

Description

We must guard all HTMLVideoElement instance checks with typeof HTMLVideoElement !== 'undefined' otherwise the renderer breaks in environments where HTMLVideoElement does not exist.

@Mugen87 Mugen87 added this to the r180 milestone Aug 8, 2025
@github-actions
Copy link

github-actions bot commented Aug 8, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.74
79.06
338.74
79.06
+0 B
+0 B
WebGPU 568.39
157.18
568.42
157.18
+38 B
+4 B
WebGPU Nodes 566.99
156.93
567.03
156.94
+38 B
+4 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 470.48
113.82
470.52
113.83
+37 B
+7 B
WebGPU 642.09
173.65
642.17
173.71
+75 B
+55 B
WebGPU Nodes 596.74
162.96
596.81
163.01
+75 B
+54 B

@Mugen87 Mugen87 merged commit f396dcb into mrdoob:dev Aug 8, 2025
9 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.

OffscreenCanvas support broken in r179.

1 participant