Repository navigation
perf: minify page scripts with esbuild at build time - #25
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Semrush Site Audit (tools.halit.org, 2026-12-01) flags 21 unminified JavaScript files: the build copied
src/*.jsto_site/as is.scripts/build.mjsruns each page script through esbuildtransform(minify, ESM kept, so module imports and file names stay the same).npm cibefore the tests. Nothing new ships to the browser and the CSP is unchanged._site/drops from about 165 KB to 91 KB.Checks:
npm test: 183 pass.npm run checktimes out on this machine at the 5-million-character repeater step on main as well (memory pressure), so it was not a usable signal here.