Skip to content

fix: use literal envPrefix queries for Vite Task#1

Closed
wan9chi wants to merge 61 commits into
feat/vite-task-runner-integrationfrom
codex/vite-envprefix-getenvs-prefix
Closed

fix: use literal envPrefix queries for Vite Task#1
wan9chi wants to merge 61 commits into
feat/vite-task-runner-integrationfrom
codex/vite-envprefix-getenvs-prefix

Conversation

@wan9chi

@wan9chi wan9chi commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Problem

The Vite Task integration reports envPrefix values to getEnvs as glob patterns like ${prefix}*. That creates a corner case where an envPrefix containing * is treated as a wildcard by the task client, while Vite itself treats envPrefix as a literal string prefix.

Solution

Use the literal prefix query form from @voidzero-dev/vite-task-client@0.2.0, added in voidzero-dev/vite-task#472, and call getEnvs({ prefix }) for each configured envPrefix.

Compatibility

This does not create a compatibility problem because no Vite release containing the vite-task-client integration has shipped yet. The integration can move to the new query form before it becomes public.

sapphi-red and others added 30 commits June 1, 2026 18:34
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: cwkang <cwkang@dozn.co.kr>
…WED_HOSTS (vitejs#21501)

Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
…22453)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… known `as` types (vitejs#21863)

Co-authored-by: nathanhleung <nathanhleung@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Signed-off-by: Kushagra963-lab <147275307+Kushagra963-lab@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
shulaoda and others added 26 commits June 10, 2026 11:10
…f having a separate FBM `DevEnvironment` (vitejs#22587)

Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
…22678)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Taisei Mima <bhbstar.me@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…tejs#22702)

Co-authored-by: sanjibani <18418553+sanjibani@users.noreply.github.com>
@wan9chi wan9chi force-pushed the codex/vite-envprefix-getenvs-prefix branch from b91a134 to e47428a Compare June 18, 2026 16:33
Co-authored-by: GPT-5 Codex <codex@openai.com>
@wan9chi wan9chi force-pushed the codex/vite-envprefix-getenvs-prefix branch from e47428a to a99d301 Compare June 18, 2026 16:39
@wan9chi wan9chi closed this Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.