Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

the `vp migrate` command wrongly rewrite "vite/rolldown/plugins" to "vite-plus/rolldown/plugins"

Đang mở
#3,050 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust, vite
Lĩnh vực
build-system, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

pending triage
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
Ngôn ngữ chính
Rust
Star
6k
Fork
274
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
206

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của voidzero-dev/vite-plus

Tất cả issue của voidzero-dev/vite-plus

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.