Skip to content

Conversation

s-rigaud
Copy link
Contributor

Description

I tried to narrow the type of some generic types. (there are some inconsistencies for spaces in union types, I try to follow each file format)

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 338.91
79.11
338.91
79.11
+0 B
+0 B
WebGPU 579.39
159.66
579.39
159.66
+0 B
+0 B
WebGPU Nodes 578
159.42
578
159.42
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 470.78
113.9
470.78
113.9
+0 B
+0 B
WebGPU 649.54
175.53
649.54
175.53
+0 B
+0 B
WebGPU Nodes 603.64
164.67
603.64
164.67
+0 B
+0 B

@sunag sunag added this to the r180 milestone Aug 29, 2025
@sunag sunag merged commit 5b6f5eb into mrdoob:dev Aug 29, 2025
9 checks passed
@s-rigaud s-rigaud deleted the fix-generic-types branch September 4, 2025 12:16
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