vp migrate doesn't flag esbuild-specific config (minify: "esbuild") — migrated project fails to build on Vite 8
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
vp migrate leaves esbuild-only config behind: minify: "esbuild" fails the build on Vite 8
Environment
- vite-plus: 1.3.0 (installed alongside an existing Vite 7.3.6 project, then migrated)
- Node 26.11.1, npm 11.20.0, Linux
- Project shape: vanilla TypeScript app, no framework, two entries,
build.minify: "esbuild"invite.config.ts
Repro
- Start from a Vite 7 project whose config contains:
export default defineConfig({
build: {
minify: "esbuild",
// ...
},
});
npm install -D vite-plusvp migrate --no-interactive
What migrate did
- ✅ Rewrote scripts:
vite build→vp build(including--watch/--mode developmentvariants) - ✅ Aliased
viteto@voidzero-dev/vite-plus-core+ added anoverridespin - ✅ Rewrote
import { defineConfig } from "vite"→"vite-plus"(consistent with the scoped-rewrite policy in #2004) - ❌ Left
minify: "esbuild"untouched
Result
vp build then fails hard:
[plugin vite:esbuild-transpile]
Error: Failed to load `transformWithEsbuild`. It is deprecated and it now requires esbuild to be installed separately. If you are a package author, please migrate to `transformWithOxc` instead.
Manual fix was one line: minify: "esbuild" → minify: true (oxc minifier). After that the project builds cleanly and ~7× faster than Vite 7, for what it's worth.
Expected
Either:
- migrate rewrites
minify: "esbuild"→minify: true, or - migrate emits a warning/diagnostic that esbuild-specific config was detected and must be updated, since Vite 8 no longer bundles esbuild and these options hard-fail instead of silently working.
I understand from #2004 that migrate deliberately only rewrites symbols vite-plus owns — config semantics being out of scope is coherent. But this particular leftover isn't a silent behavioral difference, it's a guaranteed build failure on the very next vp build, with an error message that doesn't mention minify or the config line responsible. A diagnostic at migrate time would turn a confusing post-migration failure into a one-line guided fix.
Suggested detection surface
build.minify === "esbuild"in any config file migrate touches- imports/calls of
transformWithEsbuildin project code or custom plugins
Related
- #2004 — migrate's scoped import-rewrite policy (why the import rewrite happened but config semantics were never in scope)
- vitejs/vite#22631 — same root cause class (Vite 8 unbundling esbuild breaking existing setups), different symptom
- Ngôn ngữ chính
- Rust
- Star
- 6.3k
- Fork
- 283
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 231
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
-
`pnpm create vite-plus` and `yarn create vite-plus` fail with `spawn vp ENOENT` when `vp` is not on PATHCó thể đã có người làm @fengmk2 đã nhận 1 ngày trước. Đang mởbug
voidzero-dev/vite-plus#3177 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`vp run`: scripts get a non-blocking stdin (EAGAIN) when `run` tasks in vite.config.ts use constantsĐang mởpending triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
voidzero-dev/vite-plus#3155 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Document cross-platform `FOO=bar cmd` in task commands and scriptsCó thể đã có người làm @hyunbinseo đã nhận 2 ngày trước. Đang mởdocumentation
voidzero-dev/vite-plus#3140 · 2 bình luận · 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ự
-
bug cli p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Telegram and Twitch adapters panic when splitting long messages with multibyte charactersCó thể đã có người làm @RaphaelFakhri đã 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
spacedriveapp/spacebot#661 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
project-robius/robrix#1177 ·
Maintainer thường phản hồi trong vòng 1 ngày