Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(migrate): tolerate nested npm overrides during bootstrap detection

オープン
#2,002 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@fengmk2 がすでに取り組んでいます。

2026年7月1日 から。

評価

この issue はまだ評価されていません。

説明

bug

detectVitePlusBootstrapPending assumes npm overrides values are strings, but npm supports nested override objects. A valid package.json such as this can throw during migration because the bootstrap detection calls string methods like .startsWith() on the override value:

{
  "overrides": {
    "vite": {
      "rollup": "..."
    }
  }
}

Expected behavior:

  • Migration should not crash when overrides.vite or overrides.vitest is a nested object.
  • Non-string override values should be treated as not satisfying the Vite+ override and then handled safely by the migration rewrite logic.
  • Add a regression test covering a nested npm override under a managed key.

Suggested test:

Create an npm fixture with nested overrides:

{
  "devDependencies": {
    "vite-plus": "0.1.x"
  },
  "overrides": {
    "vite": {
      "rollup": "^4.0.0"
    }
  }
}

Run:

vp migrate --no-interactive

Assert that migration completes or reports an actionable migration error, but does not throw a TypeError from bootstrap detection.

主要言語
Rust
スター
5.8k
フォーク
263
平均マージ
1日 4時間
マージ済み PR(30日)
148

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voidzero-dev/vite-plus のほかの issue

voidzero-dev/vite-plus の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。