Skip to content

feat: withold comments in release mode - #92

Merged
WorldSEnder merged 1 commit into
WorldSEnder:mainfrom
EvanCarroll:feat/withhold-comments-release
Nov 7, 2026
Merged

WorldSEnder merged 1 commit into
WorldSEnder:mainfrom
EvanCarroll:feat/withhold-comments-release

Conversation

@EvanCarroll

Copy link
Copy Markdown

Closes #91

Emits the per-chunk /* split_a, split_b, … */ comment in the loader JS only when options.debug_assertions is set, matching how the canary and instantiate.debug.js are gated. Release output is otherwise byte-identical (verified on a 25-split Leptos app: 20,757 → 16,667 bytes raw, 2,607 → 2,306 brotli).

@WorldSEnder
WorldSEnder merged commit 6e196e6 into WorldSEnder:main Nov 7, 2026
7 checks passed
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.

Per-chunk split-list comments in the loader JS are emitted in release builds

2 participants