Skip to content

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 3, 2025

Related issue: -

Description

Moves examples/jsm/curves and examples/jsm/environments to JSDoc.

The PR also adds module support back to the template. Previously, only classes were supported but there are source files in examples/jsm which are no classes but a collection of functions like NURBSUtils. Since they can't be imported over the (global) THREE namespace, it would be misleading if these functions are listed in the "Globals" category.

Modules are treated like classes in the navigation and search. Their page just holds no class definition.

Copy link

github-actions bot commented Mar 3, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.02
78.26
336.02
78.26
+0 B
+0 B
WebGPU 522.67
145.12
522.67
145.12
+0 B
+0 B
WebGPU Nodes 522.14
145.01
522.14
145.01
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.06
112.14
465.06
112.14
+0 B
+0 B
WebGPU 593.08
160.73
593.08
160.73
+0 B
+0 B
WebGPU Nodes 548.2
150.17
548.2
150.17
+0 B
+0 B

@Mugen87 Mugen87 merged commit 108e792 into mrdoob:dev Mar 3, 2025
12 checks passed
@Mugen87 Mugen87 added this to the r175 milestone Mar 3, 2025
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.

1 participant