Repository navigation
Conversation
…ed with the reason, never a clean pass; link #669 #1329 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff. I found no blocking issues.
The CHANGELOG bullet is under Unreleased and Fixed, and the docs are updated. 🤖 Generated with Claude Code |
…MDX site and the single-page severity decision #1329 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of #1354: the change is small and does what #1329 asks. I did not run the tests or the checks.
No correctness, security or untrusted-input concerns. The new code is a boolean scan over the pages, so there is no regex or DOM risk. Docs and CHANGELOG are updated. |
…ntrol was measured #1329 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff. I found nothing that should block the merge, and I did not run the tests.
The docs and CHANGELOG changes follow the repo conventions. The AC2 and AC3 reasoning is stated honestly, including the caveat that the matcher functions ran on the built chunks rather than an end-to-end audit. |
|
Landed in v0.0.145 as nik |
Closes #1329
AC1: an audit where EVERY page was browser-rendered used to collect no sentences, search nothing and pass with "No page content found". The collected page signal now records
contentRendered, and the rule returns one skipped check saying every page was browser-rendered and that--httpchecks it. Both engines covered; some-rendered audits still search the plain pages. Tests incontent-in-js-bundle-1200.test.ts.AC2 (positive control, run on a real site): a real TanStack Start site with 132 MDX files, built in a scratch copy (the site repo untouched) with an eager glob that imports every module: entry chunk 1,474 KB, 124 of 132 files' first paragraphs found inside it, estimated prose share 47%. The same site with the bodies rendered on the server: 603 KB entry chunk, 0 pages' content, prose share 37%. Method and caveat in the docs: the paragraphs came from the MDX sources and were searched with the rule's own matcher (
buildNeedleIndex/findNeedles/estimateProseShare), not read off rendered pages.AC3 (decision): keep the single-page finding
info. The prose share does not separate the cases (47% vs 37% for ordinary app code) and is below a 50% line, so it cannot drive a warning; the page count does (124 here vs 1 to 2 for hard-coded route components), and that is the existing sitewide warning. Stated in the docs.AC4: the docs link #669 as the visibility dependency (whether info checks reach the JSON and LLM reports), worded so it stays true after #1344 ships.
Docs:
docs/rules/perf/content-in-js-bundle.mdx; CHANGELOG under Unreleased. Skill: none.