chore(build): ship only the DTLN files that can load (-9 MB) (#210) #470
Merged
jared
merged 1 commits from 2026-10-25 22:48:05 -04:00
chore/build-hygiene into lotus
No Reviewers
Labels
Clear labels
a11y
area: appearance
area: auth-session
area: build-ci
area: calls
area: desktop
area: media
area: messaging
area: mobile
area: moderation
area: navigation
area: notifications
area: settings
area: threads
bug
dependencies
docs
duplicate
enhancement
help wanted
invalid
needs-human-review
performance
planning
priority: critical
priority: high
priority: low
priority: medium
qa
question
research
security
tech-debt
ux
wontfix
Accessibility: keyboard, screen reader, contrast, motion
Client area: appearance
Client area: auth-session
Client area: build-ci
Client area: calls
Client area: desktop
Client area: media
Client area: messaging
Client area: mobile
Client area: moderation
Client area: navigation
Client area: notifications
Client area: settings
Client area: threads
Something is not working
Third-party package versions and advisories
README / LOTUS_* docs wrong or missing
This issue or pull request already exists
New feature
Need some help
Something is wrong
Re-render storms, leaks, heavy work on hot paths
Data loss, security hole, or crash on a main path
Broken feature or serious usability problem
Minor issue or polish
Wrong behaviour in an edge case or notable degradation
Manual QA: shipped, needs a human in a real environment
More information is needed
XSS, unsafe URLs, data leaks, auth/session
Code health, dead code, fragile patterns
Usability or visual inconsistency
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/cinny#470
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #210 (build hygiene). Closes #210 together with #468.
Problem: the DTLN noise-suppression package (
@workadventure/noise-suppression) was copied whole into every build, 57 MB. Two kinds of file in it are never used:threadsoption. Neither the web call page nor the desktop one sends COOP/COEP (checked on chat.lotusguild.org and in cinny-desktop), so it can never load..d.tsfiles, which aren't needed at runtime.Change: the build copy leaves those out, saving 57 → 48 MB per web deploy and per desktop installer. A comment says to drop the exclusion if the call page ever turns on COOP/COEP.
Verified on the built output, in a page that isn't cross-origin isolated (as in production):
denoise/workadventure/and reachesready;The rest of #210, checked
lotusDenoisecopy cost: about 0.5 s against a multi-minute build. Not worth restructuring.viteStaticCopyrenames: not redundant. vite-plugin-static-copy v4 keeps source paths underdest, so eachstripBaseis needed (the config comments explain why).as anycasts: handled in #468. The ones left are documented boundary casts.🤖 Generated with Claude Code
https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5