Skip to content

Replaced servez with custom server.js.#32654

Merged
mrdoob merged 9 commits intodevfrom
servez
Jan 2, 2026
Merged

Replaced servez with custom server.js.#32654
mrdoob merged 9 commits intodevfrom
servez

Conversation

@mrdoob
Copy link
Copy Markdown
Owner

@mrdoob mrdoob commented Jan 2, 2026

Description

I personally use servez.app on MacOS so I never run npm run dev or npm run dev-ssl.

However, seems like we can replicate what servez does with a simpler server.js script and remove even more dependencies.

Happy to add features to server.js as needed.

(Made with Claude Opus 4.5)

@mrdoob mrdoob added this to the r183 milestone Jan 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 2, 2026

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 355.36
84.47
355.36
84.47
+0 B
+0 B
WebGPU 621.33
172.52
621.33
172.52
+0 B
+0 B
WebGPU Nodes 619.94
172.27
619.94
172.27
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 487.5
119.33
487.5
119.33
+0 B
+0 B
WebGPU 692.55
187.87
692.55
187.87
+0 B
+0 B
WebGPU Nodes 642.35
175.09
642.35
175.09
+0 B
+0 B

Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
Comment thread utils/server.js Fixed
@mrdoob
Copy link
Copy Markdown
Owner Author

mrdoob commented Jan 2, 2026

We're down to 282 packages (from 732 a few hours ago).

mrdoob@Mrdoobs-MacBook-Air three.js % npm install

added 282 packages, and audited 283 packages in 15s

53 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

@mrdoob mrdoob merged commit 2b45d4c into dev Jan 2, 2026
10 checks passed
@mrdoob mrdoob deleted the servez branch January 2, 2026 14:29
@Mugen87 Mugen87 mentioned this pull request Jan 4, 2026
1 task
@ycw
Copy link
Copy Markdown
Contributor

ycw commented Jan 6, 2026

Failed to boot npm run dev on Windows since this merge, made #32674 to fix.

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.

3 participants