Repository navigation
Restore .astro files in client environment optimizeDeps entries to prevent late dep discovery 504s - #17931
Merged
Conversation
…04 on late-discovered deps (#17929)
1 task
🦋 Changeset detectedLatest commit: da57267 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 |
Merging this PR will degrade performance by 14.81%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| 👁 | many-components (markHTMLString, isHTMLString, validateProps) |
9.6 ms | 11.3 ms | -14.81% |
Comparing factory/fix-17929 (da57267) with main (0389640)
matthewp
approved these changes
Sep 8, 2026
Merged
dadezzz
pushed a commit
to dadezzz/university_notes
that referenced
this pull request
Sep 12, 2026
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@astrojs/markdown-remark](https://astro.build) ([source](https://github.com/withastro/astro/tree/HEAD/packages/markdown/remark)) | [`7.3.0` → `7.3.1`](https://renovatebot.com/diffs/npm/@astrojs%2fmarkdown-remark/7.3.0/7.3.1) |  |  | | [astro](https://astro.build) ([source](https://github.com/withastro/astro/tree/HEAD/packages/astro)) | [`7.3.1` → `7.3.2`](https://renovatebot.com/diffs/npm/astro/7.3.1/7.3.2) |  |  | --- ### Release Notes <details> <summary>withastro/astro (@​astrojs/markdown-remark)</summary> ### [`v7.3.1`](https://github.com/withastro/astro/blob/HEAD/packages/markdown/remark/CHANGELOG.md#731) [Compare Source](https://github.com/withastro/astro/compare/@astrojs/markdown-remark@7.3.0...@astrojs/markdown-remark@7.3.1) ##### Patch Changes - [#​17896](withastro/astro#17896) [`a548223`](withastro/astro@a548223) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes `<script>`/`<style>` rendering in MDX so that only literal content (including content injected by remark/rehype plugins) is treated as trusted markup. A dynamic value passed as a `<script>`/`<style>` child (e.g. `<script>{value}</script>`) is now escaped like any other element's content instead of being rendered raw. Use `set:html` to explicitly opt a dynamic value back into raw rendering. </details> <details> <summary>withastro/astro (astro)</summary> ### [`v7.3.2`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#732) [Compare Source](https://github.com/withastro/astro/compare/astro@7.3.1...astro@7.3.2) ##### Patch Changes - [#​17896](withastro/astro#17896) [`a548223`](withastro/astro@a548223) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes `<script>`/`<style>` rendering in MDX so that only literal content (including content injected by remark/rehype plugins) is treated as trusted markup. A dynamic value passed as a `<script>`/`<style>` child (e.g. `<script>{value}</script>`) is now escaped like any other element's content instead of being rendered raw. Use `set:html` to explicitly opt a dynamic value back into raw rendering. - [#​17931](withastro/astro#17931) [`c1a6a89`](withastro/astro@c1a6a89) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes the dev toolbar returning a 504 "Outdated Optimize Dep" error when a workspace-linked package imports a dependency that Vite's initial scan did not discover - [#​17908](withastro/astro#17908) [`42e9188`](withastro/astro@42e9188) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes i18n fallback routing replacing the first substring match instead of the actual locale segment, which mangled paths like `/energy/en/about` into `/esergy/en/about` - [#​17936](withastro/astro#17936) [`4b92ddc`](withastro/astro@4b92ddc) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes sessions breaking in dev mode with the Cloudflare adapter when middleware is present - Updated dependencies \[[`a548223`](withastro/astro@a548223)]: - [@​astrojs/markdown-satteri](https://github.com/astrojs/markdown-satteri)@0.4.1 </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 CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC43OS42IiwidXBkYXRlZEluVmVyIjoiNDQuNzkuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
1 task done
This was referenced Oct 22, 2026
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
.astroback to the client environment'soptimizeDeps.entriesglob invite-plugin-environment/index.ts, restoring the behavior that existed before the Environment API refactor (PR Environment API #14306). Without this, Vite's dep scanner never processes<script>tags in.astrofiles during the initial scan, so transitive dependencies reachable only through those scripts (e.g. deps of workspace-linked packages) are discovered late at runtime. Late discovery triggers a full re-optimization with a newbrowserHash, causing 504 responses for already-in-flight requests — including the dev toolbar entrypoint..astrofiles are already handled by Vite'shtmlTypesREpattern, so adding them to entries lets the existing<script>tag extraction logic run at scan time rather than at runtime.Testing
packages/astro/test/units/vite-plugin-environment/client-entries.test.tscovering that.astrois included in the client environment'soptimizeDeps.entries, ensuring this glob is not accidentally dropped again.Docs
Closes #17929