fix(deps): resolve Dependabot alerts for vite and @babel/core#210
Merged
Conversation
vitefu only declares vite as an optional peer with a broad range. The nested override caused npm ls to report the dependency tree as invalid.
Upgrade @astrojs/react to 5.0.7 so the dependency tree uses a single Vite 7 line. Replace nested astro/@astrojs/react vite overrides with a top-level vite override to fix npm ls ELSPROBLEMS from vitefu peer resolution.
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
@astrojs/reactを^5.0.7に更新し、Vite 7 系に統一(v4 はvite@^6、v5 はvite@^7)npm overridesでvite@^7.3.5と@babel/core@^7.29.6を指定(PR #207 と同様の方針)背景
vite(v7 系)7.3.5以上へvite(v7 系)vite(v6 系)vite(v6 系)@babel/core7.29.6以上へ当初は lockfile 上の v6 / v7 二系統を
astro/@astrojs/reactごとの nested override で引き上げる案でしたが、astro配下のvitefupeer 解決と干渉しnpm lsがELSPROBLEMSになるため、@astrojs/react5.x へ上げて Vite 7 に揃える形に変更しました。Vite の high は dev server を Windows で外部公開している場合のファイル露出系であり、本番(静的 HTML 配信)への直接影響は限定的です。
検証結果
npm ls vite @babel/core --all→ exit 0(全てvite@7.3.5、@babel/core@7.29.7)npm run build→ 成功(289 ページ)npm run lint→ 成功Test plan