the `vp migrate` command wrongly rewrite "vite/rolldown/plugins" to "vite-plus/rolldown/plugins"
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ả
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.
- 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
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.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-plus
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/vite-plus#2882 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
voidzero-dev/vite-plus#2097 · 10 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`vp dev` does not print "ready in N ms"Có thể đã có người làm @fengmk2 đã nhận hôm nay. Đang mởbug
voidzero-dev/vite-plus#3053 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vp migrate crashes with "Undefined meta var" when a migrated config string contains `$`Có thể đã có người làm @BenjyLimmy đã nhận 1 ngày trước. Đang mởbug
voidzero-dev/vite-plus#3045 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a dedicated Package Management section with command reference pagesCó thể đã có người làm @jong-kyung đã nhận 1 ngày trước. Đang mởdocumentation
voidzero-dev/vite-plus#3041 · 4 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của voidzero-dev/vite-plus
Issue tương tự
-
Bump anybuf version to ^1.0.0Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
wormhole-foundation/wormhole#5062 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 62/100
-
core: Amount::from_str panics on values above 21M BTC instead of returning an errorCó thể đã có người làm @bhuvan-somisetty đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
crate: spate-s3
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày