Repository navigation
Prebundle dev toolbar entrypoint in client environment - #16480
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 1de85bb The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
matthewp
marked this pull request as ready for review
April 24, 2026 16:50
matthewp
marked this pull request as draft
April 24, 2026 17:07
matthewp
marked this pull request as ready for review
April 24, 2026 18:29
ematipico
approved these changes
Apr 27, 2026
| 'astro': patch | ||
| --- | ||
|
|
||
| Adds the dev toolbar entrypoint to the client `optimizeDeps.include` to prevent a full page reload on first navigation during dev |
Member
There was a problem hiding this comment.
Reword the changeset to make it user-facing. I don't think users need to know about optimizeDeps.include`
Contributor
|
| 📦 Package | 🔒 Before | 🔓 After |
|---|---|---|
| drizzle-orm | trusted-with-provenance | provenance |
Merged
dadezzz
pushed a commit
to dadezzz/university_notes
that referenced
this pull request
May 2, 2026
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@astrojs/check](https://github.com/withastro/astro/tree/main/packages/language-tools/astro-check) ([source](https://github.com/withastro/astro/tree/HEAD/packages/language-tools/astro-check)) | [`0.9.8` → `0.9.9`](https://renovatebot.com/diffs/npm/@astrojs%2fcheck/0.9.8/0.9.9) |  |  | | [astro](https://astro.build) ([source](https://github.com/withastro/astro/tree/HEAD/packages/astro)) | [`6.1.9` → `6.1.10`](https://renovatebot.com/diffs/npm/astro/6.1.9/6.1.10) |  |  | --- ### Release Notes <details> <summary>withastro/astro (@​astrojs/check)</summary> ### [`v0.9.9`](https://github.com/withastro/astro/blob/HEAD/packages/language-tools/astro-check/CHANGELOG.md#099) [Compare Source](https://github.com/withastro/astro/compare/@astrojs/check@0.9.8...@astrojs/check@0.9.9) ##### Patch Changes - [#​16471](withastro/astro#16471) [`f56bb3f`](withastro/astro@f56bb3f) Thanks [@​delucis](https://github.com/delucis)! - Adds support for TypeScript v6 to peer dependencies range - Updated dependencies \[[`8c62159`](withastro/astro@8c62159)]: - [@​astrojs/language-server](https://github.com/astrojs/language-server)@​2.16.7 </details> <details> <summary>withastro/astro (astro)</summary> ### [`v6.1.10`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#6110) [Compare Source](https://github.com/withastro/astro/compare/astro@6.1.9...astro@6.1.10) ##### Patch Changes - [#​16479](withastro/astro#16479) [`1058428`](withastro/astro@1058428) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes a spurious `[WARN] [content] Content config not loaded` warning during `astro dev` for projects that don't use content collections - [#​16457](withastro/astro#16457) [`3d82220`](withastro/astro@3d82220) Thanks [@​matthewp](https://github.com/matthewp)! - Hardens server island encryption to prevent encrypted data from one island component being replayed against a different one - [#​16481](withastro/astro#16481) [`152700e`](withastro/astro@152700e) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes a spurious 404 request for a dev toolbar sourcemap during `astro dev` caused by the browser mis-resolving a relative `sourceMappingURL` from the `/@​id/` URL prefix - [#​16480](withastro/astro#16480) [`1bcb43b`](withastro/astro@1bcb43b) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes an unnecessary full page reload on first navigation during dev </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNDEuNiIsInVwZGF0ZWRJblZlciI6IjQzLjE0MS42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
1 task
matthewp
added a commit
that referenced
this pull request
Sep 9, 2026
Framework components imported from MDX content entries are only reachable through the virtual astro:content module, which Vite's dep scanner cannot follow, so their framework dependencies were never pre-bundled at cold start. When the browser then requested them at runtime, Vite re-optimized and sent a full-reload, reloading the page once shortly after the first load. Add mdx to optimizeDeps.entries in both the runnable and client environments, mirroring the .astro entry added in #16480. Plain .md files cannot import components, so only .mdx needs scanning.
matthewp
added a commit
that referenced
this pull request
Sep 9, 2026
… HMR after ClientRouter navigation (#17953) * fix(content): preserve Vite module ID in content entry CSS propagation for HMR * test(render): fix SSRResult typing in renderUniqueStylesheet unit test The test result mock only provided { styles }, which does not satisfy SSRResult and broke tsc -b during the build. Cast the mock so the test typechecks. * test(content): cover content-propagation CSS HMR after ClientRouter navigation Adds an e2e test that navigates away and back with ClientRouter, then edits a Svelte component rendered through a content entry and verifies the change applies via HMR without a full reload. The load counter starts after the initial page settles so Vite's one-time cold-start re-optimization reload is not counted against the navigation flow. * fix(dev): include MDX files in the optimizeDeps scan Framework components imported from MDX content entries are only reachable through the virtual astro:content module, which Vite's dep scanner cannot follow, so their framework dependencies were never pre-bundled at cold start. When the browser then requested them at runtime, Vite re-optimized and sent a full-reload, reloading the page once shortly after the first load. Add mdx to optimizeDeps.entries in both the runnable and client environments, mirroring the .astro entry added in #16480. Plain .md files cannot import components, so only .mdx needs scanning. --------- Co-authored-by: factory[bot] <factory[bot]@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
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.
Changes
astro/runtime/client/dev-toolbar/entrypoint.jsto the client environment'soptimizeDeps.include. That's allTesting
node_modules/.vite, startastro dev, navigate to/. Before:new dependencies optimized: astro/runtime/client/dev-toolbar/entrypoint.js+ reload.Docs