Concern about aliasing strategy in Vite-Plus
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- typescript, vite
Línea de trabajo
Comienza con vite.config.ts y la superficie de comandos de vp, y luego sigue los alias, wrappers, shims generados y las identidades canónicas de paquetes o bin descritas en el issue. Se consideraría completado cuando exista un contrato de integración acordado que reduzca los casos especiales para gestores de paquetes, editores, lanzadores de LSP y código de usuario; el issue no identifica archivos ni tests concretos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
This follows from https://github.com/voidzero-dev/vite-plus/issues/1557 and the related Oxc discussion in https://github.com/oxc-project/oxc/issues/22539.
After looking through the current Vite+ codebase, I think my concern is more specific than "Vite+ ships special versions of everything".
The current setup has several different integration models at once:
viteis resolved through the@voidzero-dev/vite-plus-corealias.- Vite/Rolldown/tsdown are bundled/re-exported through
@voidzero-dev/vite-plus-core. vitestno longer uses the old@voidzero-dev/vite-plus-testwrapper, but Vite+ still exposes and migrates imports tovite-plus/test*, with runner/version pinning to keep a single Vitest instance.oxlintandoxfmtare upstream dependencies, but Vite+ still exposes canonicaloxlint/oxfmtbin names as IDE/LSP wrappers that inject Vite+ config-loading behavior.
Each individual piece has a reason, but together this creates an unclear contract for users and integrations: when should a tool continue looking for the canonical package/bin/import (vite, vitest, oxlint, oxfmt), and when should it know about vite-plus, vite-plus/test*, or vp?
That is the part that feels fragile. Package managers, editor extensions, LSP launchers, and user code all tend to assume canonical tool identities. When Vite+ needs wrappers, aliases, generated shims, and package-manager-specific edges, every integration can end up rediscovering the same special cases.
Suggested solution
What I suggested in the oxc issue.
- Keep
vpas the unified command surface. - Keep
vite.config.tsas the place where Vite+ can unify config for lint, format, test, build, pack, etc. - Let the individual tools use
vite.config.tswhen is available as well. - Treat Vite+ as the orchestrating layer over those tools, not as something that every tool identity has to be rewritten into.
Additional context
The specific thing I would like to avoid is Vite+ adoption requiring users and integrations to know a growing list of package identity rules.
As a user, I don't want to worry about having to maintain Vite+ wrappers, alias, or shim and how they get updated in tandem with the base tools that I already use.
Validations
- Read the Contributing Guidelines.
- Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- Check that there isn't already an issue requesting the same feature.
- Lenguaje dominante
- Rust
- Estrellas
- 6k
- Forks
- 274
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 195
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de voidzero-dev/vite-plus
-
`npx --package=vite-plus vp create` fails with exit 127 when npm is the chosen package managerPosiblemente ocupada @Crimson341 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
voidzero-dev/vite-plus#2970 ·
Los mantenedores suelen responder en 1 día
-
pending triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
voidzero-dev/vite-plus#2882 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
voidzero-dev/vite-plus#2097 · 10 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
Windows: PowerShell installer (1.1.0) does not add vite-plus\bin to user PATH — 'vp' not recognizedAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
voidzero-dev/vite-plus#2984 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
pending triage
Dificultad 3/5 1-2 días Aptitud para principiantes 40/100
voidzero-dev/vite-plus#2983 ·
Los mantenedores suelen responder en 1 día
Todos los issues de voidzero-dev/vite-plus
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
akitaonrails/ai-memory#1225 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
acsandmann/rift#577 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
[Bug]: rerank on the huggingface provider (TEI) always costs $0, configured input_cost_per_query is ignoredPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertollm translation
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día