René's URL Explorer Experiment


Title: @void/react: client environment has no optimizeDeps.entries for pages, causing a dev re-optimization reload on first load · Issue #599 · voidzero-dev/void · GitHub

Open Graph Title: @void/react: client environment has no optimizeDeps.entries for pages, causing a dev re-optimization reload on first load · Issue #599 · voidzero-dev/void

X Title: @void/react: client environment has no optimizeDeps.entries for pages, causing a dev re-optimization reload on first load · Issue #599 · voidzero-dev/void

Description: Summary In dev, @void/react gives the worker environment a pages/** scan entry but gives the client environment none. Vite's client scanner therefore finds no dependencies, discovers them while serving the first page, re-bundles, and for...

Open Graph Description: Summary In dev, @void/react gives the worker environment a pages/** scan entry but gives the client environment none. Vite's client scanner therefore finds no dependencies, discovers them while ser...

X Description: Summary In dev, @void/react gives the worker environment a pages/** scan entry but gives the client environment none. Vite's client scanner therefore finds no dependencies, discovers them while...

Opengraph URL: https://github.com/voidzero-dev/void/issues/599

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@void/react: client environment has no optimizeDeps.entries for pages, causing a dev re-optimization reload on first load","articleBody":"## Summary\n\nIn dev, `@void/react` gives the worker environment a `pages/**` scan entry but gives the client environment none. Vite's client scanner therefore finds no dependencies, discovers them while serving the first page, re-bundles, and forces a full page reload (`(client) optimized dependencies changed. reloading`).\n\n- Version: `void` / `@void/react` 1.2.1 (latest). `main` at 65ab6032 has the same code.\n- [`packages/react/src/plugin-pages.ts#L190-L218`](https://github.com/voidzero-dev/void/blob/65ab6032/packages/react/src/plugin-pages.ts#L190-L218): the client env only gets `include: CLIENT_OPTIMIZE_DEPS` (React); `entries: [pagesOptimizeEntries]` is set only under `environments[WORKER_ENVIRONMENT_NAME]` (L214).\n- The worker entry was added in ba979d5c (\"Fix worker crash in dev on initial load\"); its comment explains the worker case only. Nothing in the docs mentions `optimizeDeps`.\n- A second, related gap: the generated client entry imports `void/pages-prefetch` ([L274](https://github.com/voidzero-dev/void/blob/65ab6032/packages/react/src/plugin-pages.ts#L274)). It is a virtual module, so the scanner can't see that import either, and `void/pages-prefetch` is discovered late even when page entries are scanned.\n\n## Repro\n\n1. A Pages app with a few page components that import third-party UI packages (e.g. `@base-ui/react/*`, `@tanstack/react-query`).\n2. `rm -rf node_modules/.vite && DEBUG=vite:deps vp dev`\n3. Open a page in the browser.\n\nObserved (`DEBUG=vite:deps`):\n\n```\n(client) Scan completed in 12.74ms: no dependencies found\nnew dependencies were found while crawling that weren't detected by the scanner\nnew dependencies found: void/pages-prefetch, @base-ui/react/merge-props, ..., motion/react\n(client) optimized dependencies changed. reloading\n```\n\n## Measurements (one app, headless Chromium, cold `node_modules/.vite`, 3 runs per row, numbers summed over the whole load including the reload)\n\n| client config | requests | JS modules | client reload | median time to hydration |\n|---|---|---|---|---|\n| as shipped | 238 / 231 | 233 / 226 | yes (3/3) | 3981 / 4207 ms |\n| + `entries` only | 239 / 233 | 234 / 228 | yes (3/3, only `void/pages-prefetch` late) | 4048 / 4091 ms |\n| + `entries` + `include: ['void/pages-prefetch']` | 217 / 211 | 214 / 208 | no (0/3) | 3453 / 3180 ms |\n\n(two routes per cell)\n\n## Workaround\n\n```ts\n// vite.config.ts\nexport default defineConfig({\n  optimizeDeps: {\n    entries: ['pages/**/*.{js,jsx,ts,tsx}', '!pages/**/*.server.{js,jsx,ts,tsx}'],\n    include: ['void/pages-prefetch'],\n  },\n  // ...\n});\n```\n\n## Suggested fix\n\nIn the dev `config` hook of `plugin-pages.ts`, also pass the page entries (excluding `*.server.*` companions) to the client `optimizeDeps.entries`, and add `void/pages-prefetch` to the client `include` (it is imported only by the virtual client entry).","author":{"url":"https://github.com/kinwooky","@type":"Person","name":"kinwooky"},"datePublished":"2026-10-26T14:47:48Z","url":"https://github.com/voidzero-dev/void/issues/599"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:795caf96-d968-d8b3-b956-01d33f0d7dc6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB034:1B1794:216CAC:2C36EA:6AFBB44F
html-safe-nonce0add45ee5839fd88f20d34f486658caa2391c7d0132d59b4e93e126f0ba5d936
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDM0OjFCMTc5NDoyMTZDQUM6MkMzNkVBOjZBRkJCNDRGIiwidmlzaXRvcl9pZCI6Ijg2NTQ5ODg3MDY3ODU3Njg1MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb0fb5508773ba965f3b147846d70a4098a199cc762007f321b98b5183762258e
hovercard-subject-tagissue:6042049488
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/voidzero-dev/void/599/issue_layout
twitter:imagehttps://opengraph.githubassets.com/282f82bc6d7c4e6fddde8b88070412b4f5fbbfa709b5c4233ff5cd548c3e6138/voidzero-dev/void/issues/599
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/282f82bc6d7c4e6fddde8b88070412b4f5fbbfa709b5c4233ff5cd548c3e6138/voidzero-dev/void/issues/599
og:image:altSummary In dev, @void/react gives the worker environment a pages/** scan entry but gives the client environment none. Vite's client scanner therefore finds no dependencies, discovers them while ser...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekinwooky
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
go-importgithub.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git
octolytics-dimension-user_id149750581
octolytics-dimension-user_loginvoidzero-dev
octolytics-dimension-repository_id1164437080
octolytics-dimension-repository_nwovoidzero-dev/void
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1164437080
octolytics-dimension-repository_network_root_nwovoidzero-dev/void
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/voidzero-dev/void/issues/599#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F599
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F599
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/issues/599
Reloadhttps://github.com/voidzero-dev/void/issues/599
Reloadhttps://github.com/voidzero-dev/void/issues/599
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues31 (31)https://github.com/voidzero-dev/void/issues
Pull requests9 (9)https://github.com/voidzero-dev/void/pulls
Discussionshttps://github.com/voidzero-dev/void/discussions
Actionshttps://github.com/voidzero-dev/void/actions
Security and qualityhttps://github.com/voidzero-dev/void/security
Insightshttps://github.com/voidzero-dev/void/pulse
https://github.com/voidzero-dev/void
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/599
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/599
#620https://github.com/voidzero-dev/void/pull/620
@void/react: client environment has no optimizeDeps.entries for pages, causing a dev re-optimization reload on first loadhttps://github.com/voidzero-dev/void/issues/599#top
#620https://github.com/voidzero-dev/void/pull/620
https://github.com/kinwooky
kinwookyhttps://github.com/kinwooky
on Oct 26, 2026https://github.com/voidzero-dev/void/issues/599#issue-6042049488
65ab603https://github.com/voidzero-dev/void/commit/65ab6032e1c74efea30272a6d8038795b85b05d4
packages/react/src/plugin-pages.ts#L190-L218https://github.com/voidzero-dev/void/blob/65ab6032/packages/react/src/plugin-pages.ts#L190-L218
ba979d5https://github.com/voidzero-dev/void/commit/ba979d5c4a464e872c91fb847ae3215abb9204eb
L274https://github.com/voidzero-dev/void/blob/65ab6032/packages/react/src/plugin-pages.ts#L274
cursorhttps://github.com/apps/cursor
on Oct 27, 2026https://github.com/voidzero-dev/void/issues/599#event-34357490852
fix(react): pre-scan client page deps in Pages devhttps://github.com/0froq/void-fork/commit/766bd4b8a98cd15c08a1668ae3540b74d7473ff9
766bd4bhttps://github.com/0froq/void-fork/commit/766bd4b8a98cd15c08a1668ae3540b74d7473ff9
https://github.com/0froq
0froqhttps://github.com/0froq
on Oct 27, 2026https://github.com/voidzero-dev/void/issues/599#issuecomment-6442148564
Brooooooklynhttps://github.com/Brooooooklyn
on Oct 30, 2026https://github.com/voidzero-dev/void/issues/599#event-34664896198
fix(react): pre-scan client page deps in Pages devhttps://github.com/0froq/void-fork/commit/273f153686574271e45e03d036a9c3b55b9d664f
273f153https://github.com/0froq/void-fork/commit/273f153686574271e45e03d036a9c3b55b9d664f
cpojerhttps://github.com/cpojer
completedhttps://github.com/voidzero-dev/void/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#620https://github.com/voidzero-dev/void/pull/620
on Oct 30, 2026https://github.com/voidzero-dev/void/issues/599#event-34669036498
cpojerhttps://github.com/cpojer
on Oct 30, 2026https://github.com/voidzero-dev/void/issues/599#event-34669036593
fix(react): pre-scan client page deps in Pages dev (#620)https://github.com/voidzero-dev/void/commit/05193a08eca8410843fca0d408e1a27182408737
#620https://github.com/voidzero-dev/void/pull/620
https://docs.github.com/articles/closing-issues-via-commit-messages
05193a0https://github.com/voidzero-dev/void/commit/05193a08eca8410843fca0d408e1a27182408737
Sign up for freehttps://github.com/signup?return_to=https://github.com/voidzero-dev/void/issues/599
Sign in to commenthttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/599
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.