Repository navigation
perf: finish production bundle reachability follow-ups - #653
Merged
domgan-oai merged 1 commit intoAug 8, 2026
Merged
domgan-oai merged 1 commit into
domgan-oai merged 1 commit into
Conversation
57 tasks done
domgan-oai
marked this pull request as ready for review
August 8, 2026 21:33
jonkwheeler
added a commit
to jonkwheeler/octane
that referenced
this pull request
Sep 15, 2026
On current main, version.ts is a generated literal (PR octanejs#653), so the public works in the SSR pass — the manifest workaround was only needed against the older runtime JSON import. Adds an ssr-smoke assertion pinning the pill to the package's version export, which is what would have caught the 'vundefined' failure shape. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
domgan-oai
pushed a commit
that referenced
this pull request
Sep 16, 2026
* feat(website): show current octane version in the homepage hero Adds a v-pill above the hero title linking to the npm package page, sourced from packages/octane/package.json at build time so it tracks each changesets release with no runtime fetch. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor(website): use octane's version export for the hero pill On current main, version.ts is a generated literal (PR #653), so the public works in the SSR pass — the manifest workaround was only needed against the older runtime JSON import. Adds an ssr-smoke assertion pinning the pill to the package's version export, which is what would have caught the 'vundefined' failure shape. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Summary
sideEffectsallowlists and executable production-bundle regressions; unused package roots still tree-shake.versionliteral from the authoritative package manifest duringpnpm sync, reject stale generation before publication, and verify the built package reports the exact manifest version. An isolated production import drops from 1,104 to 57 gzip bytes.References #632.
Validation
pnpm format:checkpnpm typecheckpnpm test— the full monorepo suite was not run; owner-local and cross-mode coverage is listed below.pnpm syncnode packages/octane/scripts/build.mjspnpm typecheck:files packages/octane/src/runtime.ts packages/octane/src/version.ts packages/octane/tests/version.test.ts packages/octane/tests/production-profile-bundle.test.ts packages/lynx/tests/package-boundary.test.ts packages/rspeedy-plugin-octane/tests/package-boundary.test.ts./node_modules/.bin/vitest run --project octane --project octane-prod --reporter=dot --silent=passed-only— the complete development and production core suites passed: 776 files / 10,988 tests.node benchmarks/bench.mjs --quick --ratios codegen-size bundle-size bundle-reachability— 144/144 deterministic guards passed, including 28 executable production scenarios.node benchmarks/bench.mjs --quick --ratios bundle-size— 56/56 guards passed.node benchmarks/bench.mjs --quick --ratios weather-app— 3/3 guards passed across six framework builds; 36 forecast updates measured 3.90 ms Octane / 6.20 ms React.Risk / follow-ups
.tsx/compiled interoperability, so the speculative context optimization was investigated and explicitly excluded.Provenance
agent-authored)Note
Medium Risk
Changes the core render path’s transition bookkeeping and the published
versionpipeline, but behavior is covered by expanded transition, bundle, and package-boundary tests; benchmark rebaselines are documentation of already-shipped sizes rather than new runtime semantics.Overview
This PR reduces production bundle size while keeping profiling, transitions, Suspense, and hydration behavior intact, and tightens CI size enforcement so runtime wins cannot mask app or framework growth.
Runtime and packaging: Public
versionis now a generated literal frompackage.json(wired intopnpm syncand checked before publish), droppingpackage.jsonfrom version-only consumer graphs. Transition-attemptbegin/endrun through the lazily installed transition swap driver with a single captured driver per render (avoids re-reading after an urgent render installs Suspense machinery). Getting started documents setting__OCTANE_PROFILE_ENABLED__: 'false'in custom esbuild production builds so inactive profiling/devtools code is eliminated; tests lock normal vs profile esbuild behavior.Lynx / Rspeedy: Narrow
sideEffectsentries preserve worklet registration and main-thread bootstrap modules in minified production bundles, with package-boundary tests that unused root imports still tree-shake.Benchmarks: New
bundle-size/app-budgets.jsonand harness wiring publish anoctane-tsrx-budgetreference target; 36maxRatio: 1guards cap app, framework, and total raw/gzip/brotli for rows, TodoMVC, chat, and weather. Stale July cross-framework ratio ceilings are rebaselined to August Node 24 measurements while keeping comparative guards. A transitions test asserts held screens stay whole across successive suspended transitions.Reviewed by Cursor Bugbot for commit f42ca90. Bugbot is set up for automated code reviews on this repo. Configure here.