Skip to content

Conversation

@mrdoob
Copy link
Owner

@mrdoob mrdoob commented Dec 9, 2025

Related issue: #32461

Description

Replaced switches with Maps. A clean up that I bumped on while working on #32461.

@mrdoob mrdoob added this to the r182 milestone Dec 9, 2025
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 350.9
83.23
350.93
83.27
+26 B
+36 B
WebGPU 616.37
171.08
616.37
171.08
+0 B
+0 B
WebGPU Nodes 614.98
170.81
614.98
170.81
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 483.14
118.07
483.23
118.17
+88 B
+95 B
WebGPU 687.22
186.67
687.22
186.67
+0 B
+0 B
WebGPU Nodes 637.06
173.89
637.06
173.89
+0 B
+0 B

@mrdoob mrdoob merged commit d2e80c1 into dev Dec 9, 2025
10 checks passed
@mrdoob mrdoob deleted the mrdoob-patch-2 branch December 9, 2025 02:36
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