the `vp migrate` command wrongly rewrite "vite/rolldown/plugins" to "vite-plus/rolldown/plugins"
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust, vite
- 領域
- build-system, cli
調査の方向性
The bug is in the vp migrate command, which rewrites the import "vite/rolldown/plugins" in vite.config.ts to "vite-plus/rolldown/plugins". The payload names no source file, so first find the migration code that maps vite imports to vite-plus, then reproduce with a config containing that import. Done means that subpath stays unchanged while other vite imports are still rewritten, and a test covers this case.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Hi,
In [email protected] the vp migrate command wrongly rewrite import "vite/rolldown/plugins"; to import "vite-plus/rolldown/plugins";.
Thank you.
Reproduction
https://github.com/voidzero-dev/vite-plus/
Steps to reproduce
- Install Vite+
- Add
import "vite/rolldown/plugins";on top of vite.config.ts - Run
vp migrate
The line will be rewritten as import "vite-plus/rolldown/plugins";
System Info
Node.js:
Version 24.21.0
Source lts
Bin Path C:\Users\lmoulanier\.vite-plus\js_runtime\node\24.21.0\node.exe
Installed true
Mode managed
Package Manager:
Name pnpm
Version 11.9.0
Source packageManager
Bin Paths
pnpm C:\Users\lmoulanier\.vite-plus\package_manager\pnpm\11.9.0\pnpm\bin\pnpm.cmd
pnpx C:\Users\lmoulanier\.vite-plus\package_manager\pnpm\11.9.0\pnpm\bin\pnpx.cmd
Installed true
Mode managed
vp v1.2.0
Local vite-plus:
vite-plus v1.2.0
Tools:
vite v8.3.4
rolldown v1.2.13
vitest v5.0.4
oxfmt v0.73.0
oxlint v1.88.0
oxlint-tsgolint v7.0.2004
tsdown v0.23.1
Environment:
Package manager pnpm v11.9.0
Node.js v24.21.0
Used Package Manager
pnpm
Logs
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
- 主要言語
- Rust
- スター
- 6k
- フォーク
- 274
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 211
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidzero-dev/vite-plus のほかの issue
-
pending triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
voidzero-dev/vite-plus#2882 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
voidzero-dev/vite-plus#2097 · コメント 10 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
vp migrate crashes with "Undefined meta var" when a migrated config string contains `$`対応中かも @BenjyLimmy が 2 日前に担当しました。 オープンbug
voidzero-dev/vite-plus#3045 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Add a dedicated Package Management section with command reference pages対応中かも @jong-kyung が 2 日前に担当しました。 オープンdocumentation
voidzero-dev/vite-plus#3041 · コメント 4 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Support vp pm team commands対応中かも @jong-kyung が 2 日前に担当しました。 オープンenhancement
voidzero-dev/vite-plus#3036 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
voidzero-dev/vite-plus の issue をすべて見る
似ている issue
-
agent:triaged bug bughunt pm:pipenv priority:p1
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SocketDev/socket-patch#1608 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
adorsys/status-list-server#698 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nannou-org/egui_graph#92 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 半日 初心者へのやさしさ 72/100
sujithputta02/Esapay#13 ·
-
Deduplicate normalized_f64_bits (hash_table.rs and bloom_filter.rs)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
tursodatabase/turso#10002 ·
メンテナーはふだん 1 日以内に返信