GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(config): export `resolveConfigFromFile` helper by leaysgur · Pull Request #3249 · voidzero-dev/vite-plus

Conversation

@leaysgur

@leaysgur leaysgur commented Oct 27, 2026 •
edited by fengmk2
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

resolveConfig({ configFile }, 'build') uses process.cwd() for an unset or relative root. In editors with multiple workspace folders, plugins can therefore load files from another project.

This PR exports resolveConfigFromFile(configFile, options?) from vite-plus for ESM and CommonJS. Its default rootBase is the config file's parent directory. With an absolute configFile, default root resolution is independent of process.cwd(). Callers can pass { rootBase: projectRoot } when the config directory differs from the project directory.

Assume process.cwd() is /work/editor and configFile is /repo/config/vite.config.ts. These examples have no plugin changes to root or symbolic links.

Config root Existing resolveConfig({ configFile }, 'build') resolveConfigFromFile(configFile) With { rootBase: '/repo' }
Unset, undefined, or '' /work/editor /repo/config /repo
'app' /work/editor/app /repo/config/app /repo/app
'../shared' /work/shared /repo/shared /shared
'/srv/site' /srv/site /srv/site /srv/site

An internal core option applies the selected base before plugin apply and config hooks. The helper preserves environment initialization, plugin hooks, and configuration metadata. It skips lazyPlugins factories during metadata reads. Relative configFile and explicit rootBase paths resolve from process.cwd(). The helper does not change the process cwd.

Existing resolveConfig() calls keep their behavior. The CLI resolver retains its inline root: cwd, including parent configs found through traverseUp. Oxlint and Oxfmt adoption requires a separate integration change. Each caller can choose the new helper and an explicit project base when needed; this choice is not restricted to LSP.

Refs: #3217

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

fengmk2 and chatgpt-codex-connector[bot] reacted with thumbs up emoji jong-kyung reacted with heart emoji
All reactions
  • 👍 2 reactions
  • ❤️ 1 reaction
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://vp-resolve-config-root-viteplus-dev.voidzero-docs.workers.dev (commit 511d4ee)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://729a47e3-viteplus-dev.voidzero-docs.workers.dev 511d4ee 2026-10-28T13:03:28.688Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://23e55262-viteplus-dev.voidzero-docs.workers.dev 5216e3e 2026-10-28T04:48:04.003Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://efa4d76e-viteplus-dev.voidzero-docs.workers.dev 7e71e52 2026-10-28T04:22:26.704Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://3b774f59-viteplus-dev.voidzero-docs.workers.dev b89078a 2026-10-28T01:38:42.555Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://6fd6d0cb-viteplus-dev.voidzero-docs.workers.dev 38daf78 2026-10-27T23:45:38.444Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c5193d44-viteplus-dev.voidzero-docs.workers.dev eea399d 2026-10-27T15:04:50.529Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://37c65ef0-viteplus-dev.voidzero-docs.workers.dev 68ba917 2026-10-27T14:37:56.975Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://1d46660d-viteplus-dev.voidzero-docs.workers.dev d1b39c6 2026-10-27T09:05:17.559Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2493be01-viteplus-dev.voidzero-docs.workers.dev 4bb4b4a 2026-10-27T07:58:25.982Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://8c3266f9-viteplus-dev.voidzero-docs.workers.dev cd28972 2026-10-27T07:44:00.852Z Visit the dashboard ↗

View all previews: View all previews ↗

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: 511d4ee

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests labels Oct 27, 2026
@leaysgur
leaysgur marked this pull request as ready for review October 27, 2026 05:18
@leaysgur

leaysgur commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

@fengmk2 Thanks for confirmation (and also testing?)!

My concern was the (just AI-generated) code; rather than re-implementing a similar mechanism, I was wondering whether there might actually be existing APIs or features available.

In this PR, I've made a few adjustments to the original proposal, and I'd appreciate it if you could review it.

fengmk2 reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leaysgur
leaysgur requested a review from fengmk2 October 27, 2026 05:23
@fengmk2 fengmk2 self-assigned this Oct 27, 2026
@fengmk2 fengmk2 added the preview-build Publish this PR's commits to the registry bridge as preview builds label Oct 27, 2026
@fengmk2

fengmk2 commented Oct 27, 2026

Copy link
Copy Markdown
Member

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T05:38:37.361412Z ba6364a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: ba6364a057

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Preview binary sizes (eea399d)

Compared with the latest stable release, v1.4.0. Preview build.
Each row measures one binary. Negative changes mean a smaller preview binary.

Binary Latest release Preview Change
vp (macOS ARM64) 5.38 MiB 5.39 MiB +16.36 KiB (+0.30%)
NAPI (macOS ARM64) 42.20 MiB 42.25 MiB +48.41 KiB (+0.11%)
vp (macOS x64) 6.82 MiB 6.84 MiB +28.13 KiB (+0.40%)
NAPI (macOS x64) 47.34 MiB 47.39 MiB +56.09 KiB (+0.12%)
vp (Linux ARM64 GNU) 6.81 MiB 6.84 MiB +24.00 KiB (+0.34%)
NAPI (Linux ARM64 GNU) 31.44 MiB 31.47 MiB +35.25 KiB (+0.11%)
vp (Linux ARM64 musl) 6.88 MiB 6.92 MiB +32.20 KiB (+0.46%)
NAPI (Linux ARM64 musl) 30.67 MiB 30.69 MiB +22.81 KiB (+0.07%)
vp (Linux x64 GNU) 8.22 MiB 8.26 MiB +36.00 KiB (+0.43%)
NAPI (Linux x64 GNU) 35.45 MiB 35.51 MiB +55.31 KiB (+0.15%)
vp (Linux x64 musl) 8.29 MiB 8.33 MiB +36.24 KiB (+0.43%)
NAPI (Linux x64 musl) 34.43 MiB 34.46 MiB +25.88 KiB (+0.07%)
vp (Windows x64) 6.09 MiB 6.13 MiB +32.50 KiB (+0.52%)
NAPI (Windows x64) 31.16 MiB 31.18 MiB +26.50 KiB (+0.08%)
Trampoline (Windows x64) 13.00 KiB 13.00 KiB 0 B (0.00%)
Installer (Windows x64) 4.67 MiB 4.68 MiB +3.00 KiB (+0.06%)
vp (Windows ARM64) 5.33 MiB 5.35 MiB +24.00 KiB (+0.44%)
NAPI (Windows ARM64) 27.57 MiB 27.59 MiB +21.50 KiB (+0.08%)
Trampoline (Windows ARM64) 13.00 KiB 13.00 KiB 0 B (0.00%)
Installer (Windows ARM64) 3.85 MiB 3.85 MiB +2.50 KiB (+0.06%)
gzip -9 sizes
Binary Latest release Preview Change
vp (macOS ARM64) 3.20 MiB 3.21 MiB +12.27 KiB (+0.37%)
NAPI (macOS ARM64) 18.25 MiB 18.27 MiB +19.48 KiB (+0.10%)
vp (macOS x64) 3.38 MiB 3.39 MiB +15.57 KiB (+0.45%)
NAPI (macOS x64) 19.44 MiB 19.47 MiB +29.28 KiB (+0.15%)
vp (Linux ARM64 GNU) 3.69 MiB 3.71 MiB +15.04 KiB (+0.40%)
NAPI (Linux ARM64 GNU) 13.31 MiB 13.33 MiB +18.13 KiB (+0.13%)
vp (Linux ARM64 musl) 3.71 MiB 3.73 MiB +16.30 KiB (+0.43%)
NAPI (Linux ARM64 musl) 13.01 MiB 13.02 MiB +12.79 KiB (+0.10%)
vp (Linux x64 GNU) 3.76 MiB 3.77 MiB +15.72 KiB (+0.41%)
NAPI (Linux x64 GNU) 14.12 MiB 14.14 MiB +20.46 KiB (+0.14%)
vp (Linux x64 musl) 3.78 MiB 3.80 MiB +15.27 KiB (+0.39%)
NAPI (Linux x64 musl) 13.66 MiB 13.67 MiB +11.55 KiB (+0.08%)
vp (Windows x64) 2.82 MiB 2.83 MiB +11.43 KiB (+0.40%)
NAPI (Windows x64) 12.69 MiB 12.71 MiB +16.47 KiB (+0.13%)
Trampoline (Windows x64) 7.14 KiB 7.14 KiB -1 B (-0.01%)
Installer (Windows x64) 2.24 MiB 2.24 MiB +551 B (+0.02%)
vp (Windows ARM64) 2.69 MiB 2.70 MiB +9.32 KiB (+0.34%)
NAPI (Windows ARM64) 12.05 MiB 12.06 MiB +12.73 KiB (+0.10%)
Trampoline (Windows ARM64) 6.93 KiB 6.93 KiB -1 B (-0.01%)
Installer (Windows ARM64) 2.14 MiB 2.14 MiB +306 B (+0.01%)

Raw sizes are uncompressed file sizes. gzip sizes recompress each binary at level 9; they are not package or download archive sizes.
The baseline uses published release files, including NAPI packages from npm at the same version. Build versions and toolchains can affect the difference.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Registry bridge build (eea399d)

This commit build is published to the registry bridge, which serves these as ordinary npm versions (every other package proxies to npmjs):

Package Version
vite-plus 0.0.0-commit.eea399da26baaf2c65c81af11da948f583ab23cb
@voidzero-dev/vite-plus-core 0.0.0-commit.eea399da26baaf2c65c81af11da948f583ab23cb
create-vite-plus 0.0.0-commit.eea399da26baaf2c65c81af11da948f583ab23cb

Install the Vite+ CLI built from this commit, then migrate a project:

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/voidzero-dev/vite-plus/eea399da26baaf2c65c81af11da948f583ab23cb/packages/cli/install.sh | VP_PR_VERSION=3249 VP_LEGACY_INSTALLER_URL=https://raw.githubusercontent.com/voidzero-dev/vite-plus/eea399da26baaf2c65c81af11da948f583ab23cb/packages/cli/install-legacy.sh bash
# Windows (PowerShell)
$env:VP_PR_VERSION="3249"; $env:VP_LEGACY_INSTALLER_URL="https://raw.githubusercontent.com/voidzero-dev/vite-plus/eea399da26baaf2c65c81af11da948f583ab23cb/packages/cli/install-legacy.ps1"; irm https://raw.githubusercontent.com/voidzero-dev/vite-plus/eea399da26baaf2c65c81af11da948f583ab23cb/packages/cli/install.ps1 | iex

Or download the standalone Windows installer built from this commit:

Architecture Installer
x64 vp-setup-x86_64-pc-windows-msvc.exe
Arm64 vp-setup-aarch64-pc-windows-msvc.exe

GitHub requires you to sign in and downloads each installer as a ZIP artifact. Extract vp-setup.exe, then run it against this preview build:

.\vp-setup.exe --version "0.0.0-commit.eea399da26baaf2c65c81af11da948f583ab23cb" --registry "https://registry-bridge.viteplus.dev/"

After installing, upgrade the current project's vite-plus to this test build with:

vp migrate

Or create a new project from this commit without installing the CLI:

export npm_config_registry=https://registry-bridge.viteplus.dev/ pnpm_config_registry=https://registry-bridge.viteplus.dev/
pnpm create [email protected] # or: npm create [email protected]
$env:npm_config_registry="https://registry-bridge.viteplus.dev/"; $env:pnpm_config_registry="https://registry-bridge.viteplus.dev/"
pnpm create vite-plus@0.0.0-commit.eea399da26baaf2c65c81af11da948f583ab23cb # or: npm create [email protected]

pnpm 11+ reads pnpm_config_registry, npm and older pnpm read npm_config_registry. The new project pins this build, so keep the registry set for later installs, or configure it as below.

Or point your package manager at the bridge registry https://registry-bridge.viteplus.dev/:

Package manager Registry config
npm / pnpm / Bun .npmrc: registry=https://registry-bridge.viteplus.dev/
Yarn (v2+) .yarnrc.yml: npmRegistryServer: "https://registry-bridge.viteplus.dev/"

Then pin the build (vite aliases to vite-plus-core; pnpm can use a catalog, npm an overrides entry):

{
  "devDependencies": {
    "vite-plus": "0.0.0-commit.eea399da26baaf2c65c81af11da948f583ab23cb",
    "vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.eea399da26baaf2c65c81af11da948f583ab23cb"
  }
}
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

🐳 Docker preview image

Built from this PR's registry bridge build:

Image Compressed size
ghcr.io/voidzero-dev/vite-plus:pr-3249 218MB
# remove any stale local copy from a previous run, then pull fresh
docker rmi ghcr.io/voidzero-dev/vite-plus:pr-3249 2>/dev/null; docker pull ghcr.io/voidzero-dev/vite-plus:pr-3249

Quick check:

docker run --rm ghcr.io/voidzero-dev/vite-plus:pr-3249 vp --version

See docs/guide/docker.md for usage.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

fengmk2
fengmk2 reviewed Oct 27, 2026
View reviewed changes
Comment thread packages/cli/src/define-config.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

fengmk2
fengmk2 reviewed Oct 27, 2026
View reviewed changes
Comment thread packages/cli/src/define-config.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2 fengmk2 mentioned this pull request Oct 27, 2026
Use the upstream config API preview with Oxc adapters why-reproductions-are-required/vite-plus-lsp-config-root-3217#1
Open
fengmk2
fengmk2 approved these changes Oct 27, 2026
View reviewed changes
@leaysgur

leaysgur commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Another idea might be:

The current approach tries to preserve Vite's config-resolution behavior, including plugin hooks that may modify the config. That introduces complexity and compatibility concerns.

If we can separate Vite's config resolution from reading Vite+-specific fields, we could instead use loadConfigFromFile() to evaluate the config and extract .lint, .fmt, .pack, .staged, etc., without calling resolveConfig()?

Config functions and promises would still be evaluated, and lazyPlugins could still be skipped. However, Vite plugin hooks would not run, so changes they make to these fields would not be supported.

This would avoid P1 and the need to reconstruct a ResolvedConfig. We would still need to define the environment initialization before evaluation for P2.

The main question: whether any consumers need these fields to be modified by Vite plugin hooks?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2

fengmk2 commented Oct 27, 2026

Copy link
Copy Markdown
Member

@leaysgur We considered this approach before. It would indeed be much simpler, but it would break the Vite plugin mechanism, so we didn’t choose it.

leaysgur reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leaysgur

leaysgur commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Oh, I see~. Then, let me know if there is anything else I should do.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2
fengmk2 marked this pull request as draft October 27, 2026 06:59
@fengmk2 fengmk2 changed the title feat(config): export resolveConfigFile helper feat(config): resolve roots from the config file directory Oct 27, 2026
@fengmk2 fengmk2 changed the title feat(config): resolve roots from the config file directory feat(config): export resolveConfigFile helper Oct 27, 2026
@fengmk2 fengmk2 removed the preview-build Publish this PR's commits to the registry bridge as preview builds label Oct 27, 2026
@fengmk2 fengmk2 added the preview-build Publish this PR's commits to the registry bridge as preview builds label Oct 27, 2026 — with ChatGPT Codex Connector
@fengmk2 fengmk2 removed the preview-build Publish this PR's commits to the registry bridge as preview builds label Oct 27, 2026
@fengmk2 fengmk2 added the preview-build Publish this PR's commits to the registry bridge as preview builds label Oct 27, 2026 — with ChatGPT Codex Connector
@fengmk2

fengmk2 commented Oct 28, 2026

Copy link
Copy Markdown
Member

@leaysgur Let’s wait until the new Vite+ version is released before updating Oxc. I’m not planning to release a new version this week. Vite+ 1.5.0 is scheduled for next Tuesday.

leaysgur reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2
fengmk2 marked this pull request as ready for review October 28, 2026 12:50
@fengmk2
fengmk2 force-pushed the vp-resolve-config-root branch from 5216e3e to 89060b7 Compare October 28, 2026 12:55
leaysgur and others added 18 commits October 28, 2026 22:02
@leaysgur @fengmk2
export resolveConfigFile
f2bec9d
@leaysgur @fengmk2
f
02c767b
@fengmk2
fix(config): preserve Vite resolution for config files
97a86e8
@fengmk2
refactor(build): extract Vite branding script
d57ec71
@fengmk2
docs: remove redundant configuration build instructions
d9c79a6
@fengmk2
test: remove redundant Vite patch unit tests
fca9636
@fengmk2
test(pack): cover config metadata in plugin hooks
8fa9211
@fengmk2
docs(core): describe Vite config source preparation
e8b9c27
@fengmk2
fix(config): make root base explicit and preserve CLI behavior
5b3b07b
@fengmk2
refactor(config): rename helper to resolveConfigFromFile
9fa7ac5
@fengmk2
test(pack): show root and output checks in snapshots
996210c
@fengmk2
test(config): show hook checks in snapshots
a9f58ef
@fengmk2
test(config): separate resolveConfigFromFile coverage
99af412
@fengmk2
fix(config): default file resolver root to config directory
4cee049
@fengmk2
refactor(config): simplify patches and resolver tests
ee06b43
@fengmk2
build: keep Vite branding in source preparation
ac41bdf
@fengmk2
build: remove redundant brand-vite script
a1eb700
@fengmk2
docs(config): clarify initial root resolution semantics
511d4ee
@fengmk2
fengmk2 force-pushed the vp-resolve-config-root branch from 89060b7 to 511d4ee Compare October 28, 2026 13:02
@fengmk2
fengmk2 merged commit 6c76e05 into main Oct 28, 2026
117 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2
fengmk2 deleted the vp-resolve-config-root branch October 28, 2026 13:21
@fengmk2 fengmk2 mentioned this pull request Nov 3, 2026
release: v1.5.0 #3336
Merged
fengmk2 added a commit that referenced this pull request Nov 4, 2026
@voidzero-guard @fengmk2 @claude
release: v1.5.0 (#3336)
671b5e4
Vite+ 1.5 adds an official Homebrew tap, runs TypeScript through Node.js
with `node --import vite-plus/register`, and lets `vp migrate` move
`oxnode` and transpile-only `ts-node` scripts to `vpx`.

### Features

- Install `vp` from the official Homebrew tap on macOS and glibc Linux
([docs](https://viteplus.dev/guide/homebrew))
([#2740](#2740)), by
@fengmk2:
  ```bash
brew tap voidzero-dev/vite-plus
https://github.com/voidzero-dev/vite-plus
  brew install voidzero-dev/vite-plus/vp
  ```
- `node --import vite-plus/register` runs TypeScript with the same
loader as `vpx`, so tools that start Node.js themselves, such as the
Node.js test runner, AVA, or a `NODE_OPTIONS` setting, can run
TypeScript files
([docs](https://viteplus.dev/guide/vpx#using-node-js-directly))
([#3208](#3208)), by
@fengmk2.
- `vp migrate` moves `oxnode` commands and transpile-only `ts-node`
commands to `vpx`, and moves their Node.js preloads and literal
`NODE_OPTIONS` values to `vite-plus/register`. `ts-node` commands that
type-check stay unchanged with a warning, and the `ts-node` dependency
is removed only when nothing still uses it. A project already on Vite+
gets this migration with `vp migrate --full`
([docs](https://viteplus.dev/guide/migrate-rules#oxnode-to-vpx))
([#3209](#3209),
[#3210](#3210)), by
@fengmk2.
- `vp migrate` warns when it finds Rollup, Rolldown, or Jest
dependencies with matching configuration, and explains how to move them
to Vite, tsdown, or Vitest. The warnings show during the first
migration, or with `vp migrate --full` in a project already on Vite+
([#3275](#3275)), by
@KTrain5169 and @fengmk2.
- `vite-plus` exports `resolveConfigFromFile(configFile, options?)`,
which resolves a config relative to the config file's directory instead
of `process.cwd()`, so editor plugins with several workspace folders
load the files of the right project
([#3249](#3249)), by
@leaysgur and @fengmk2.
- Security: the CLI ships `[email protected]`, which fixes a denial of
service through glob pattern amplification
([GHSA-g3hv-75wg-m249](GHSA-g3hv-75wg-m249),
medium), and `[email protected]`, which fixes
[RUSTSEC-2026-0391](https://rustsec.org/advisories/RUSTSEC-2026-0391),
[RUSTSEC-2026-0398](https://rustsec.org/advisories/RUSTSEC-2026-0398),
and
[RUSTSEC-2026-0403](https://rustsec.org/advisories/RUSTSEC-2026-0403)
([#3328](#3328),
[#3331](#3331)), by
@renovate[bot] and @wan9chi.
- Upgrade the bundled tools
([#3205](#3205),
[#3236](#3236),
[#3261](#3261),
[#3206](#3206),
[#3330](#3330),
[#3338](#3338)), by
@voidzero-guard[bot] and @fengmk2:
- `[email protected]` to `[email protected]`, with
`experimentalInlineCommonChunks` in dev mode and no crash when the
working directory was deleted.
- `[email protected]` to `[email protected]`: `vp pack --env-file` can be
repeated to load several env files, the config has a JSON schema, and
`?inline` CSS imported from dependencies is inlined.
- `[email protected]` to `[email protected]`, with `--last-failed` and
`--since-last-run`, fake timers for `node:timers`, and interactive
review of failed snapshots. Browser mode now uses port 23315 by default.
- `[email protected]` to `[email protected]` and `[email protected]` to
`[email protected]`, with the new type-aware rule
`typescript/no-unsafe-enum-assignment`, wider checks in rules such as
`array-callback-return`, `no-useless-concat`, and `no-control-regex`,
and two rules moved into the `suspicious` category.
- `[email protected]` to `[email protected]`, with a new HTML formatter and
JavaScript and TypeScript fixes for parentheses, array layout, and line
width with wide characters.
- The new oxlint and oxfmt versions can flag code that passed before. If
your CI runs `vp check`, run `vp fmt` after upgrading.
- `vpx` and `vite-plus/register` run on `[email protected]`, which resolves
a `.jsx` specifier to its `.tsx` or `.ts` source.

### Fixes & Enhancements

- `vp create` into a target path that is a symbolic link removes only
the link after confirmation, instead of deleting the contents of the
linked directory, and the overwrite prompt names symbolic links and
files ([#2418](#2418)), by
@leslieeilsel and @fengmk2.
- `vp implode` removes only directories and shims that it can verify as
Vite+ installations, and refuses the home directory, its parents, and
filesystem roots even with `--yes`, so a `VP_HOME` that points at
another directory cannot delete unrelated files
([#3228](#3228)), by
@jong-kyung.
- `vp run` starts faster in workspaces whose tasks share cache `input`
and `output` patterns, because each pattern is parsed once. In a
138-package workspace this saves about 2 seconds of CPU on every run
([vite-task#887](voidzero-dev/vite-task#887),
[vite-task#890](voidzero-dev/vite-task#890)), by
@jasonkuhrt and @wan9chi.
- `vp run` and package-manager commands in npm projects start about 110
ms sooner, because `vp` reads the npm version from npm's `package.json`
instead of running `npm --version`
([#3259](#3259)), by
@magurotuna.
- `vp migrate` checks Vitest prerequisites faster in workspaces, because
it parses each lockfile once
([#3212](#3212)), by
@jong-kyung.
- The installer and `vp upgrade` install the global CLI's dependencies
with the Node.js version that the release pins (24.22.2 for this
release), instead of the latest LTS
([docs](https://viteplus.dev/guide/ci#node-js-during-installation))
([#3269](#3269)), by
@fengmk2.
- The Node.js `latest` alias in `vp env use`, `vp env default`, `vp env
pin`, `vp env install`, and `.nvmrc` resolves to the newest stable
release instead of a `27.0.0-alpha` build, and `vp env list-remote`
marks that stable release as latest
([#3335](#3335)), by
@voidzero-bot[bot] and @fengmk2.
- `VP_NODE_VERSION=22` and other partial versions work for project
commands such as `vp build`, `vp run`, and `vp list`, instead of failing
with a 404 download error
([#3341](#3341)), by
@jong-kyung.
- Two `vp install -g` commands that run at the same time no longer
delete each other's active package, and a command that starts while a
package manager is being installed no longer runs its shim before the
shim is executable
([#3185](#3185),
[#3248](#3248)), by
@jong-kyung.
- `vp config` waits and retries when another linked git worktree holds
the shared git config lock, so a `prepare` script no longer fails when
two worktrees install at the same time
([#3199](#3199)), by
@naokihaba.
- `vp env doctor` reports Node.js resolution failures, unreadable
config, a failing system `node`, and missing shims as errors and exits
with code 1. When it finds only warnings, the summary says `Some
warnings found` instead of `All checks passed`
([#3215](#3215),
[#3222](#3222)), by
@liangmiQwQ.
- Nushell completions for `vp` and `vpr` use the named completer input,
so Nushell 0.116 shows no deprecation warning, and they fall back to
file completion when fish is not installed. Run `vp env setup --refresh`
to regenerate `env.nu`
([#3267](#3267),
[#3276](#3276)), by
@naokihaba.
- `vp migrate` removes the `tsx` dependency even when a comment still
contains a `tsx` command or code fence, and keeps it for JSDoc type
imports that need it
([#3299](#3299)), by
@voidzero-bot[bot] and @fengmk2.
- The `prefer-vite-plus-imports` lint rule and its autofix leave the
`vite` and `vitest` imports that `vp migrate` keeps, such as `vitest`
imports in a package that lists `vitest` in `peerDependencies`, so `vp
lint --fix` no longer breaks the package for its plain Vitest users
([#3192](#3192)), by
@Dunqing.
- Generated Zed settings no longer force `typeAware` and
`unusedDisableDirectives`, so editor diagnostics follow the
`lint.options` in `vite.config.ts`. Existing editor settings stay
unchanged
([#2357](#2357)), by
@pweyck.
- `vp dlx` with npm runs the right executable for scoped packages such
as `@angular/cli`
([#3229](#3229)), by
@jong-kyung.
- `vp outdated -r` in npm projects checks the workspaces instead of
transitive dependencies, and requires npm 7.14.0 or later
([#3240](#3240)), by
@jong-kyung.
- Dependency filters such as `--prod` and `--dev` work with npm 6, and
filters that npm 6 cannot apply are rejected instead of passed through
([#3251](#3251)), by
@jong-kyung.
- Package-manager commands that the selected version does not have, such
as `vp pm stage` before npm 11.15.0, are skipped with a warning.
Unsupported `pnpm dlx` and `pnpm pack` options, and project-only flags
on managed global commands such as `vp install -g`, are rejected instead
of silently ignored
([#3286](#3286),
[#3285](#3285)), by
@jong-kyung.
- `vp toolchain -g` is short for `vp toolchain --global`
([#3189](#3189)), by
@jong-kyung.
- On Linux and macOS, programs in tasks with automatic file-access
tracking no longer abort when they call `exec` with an empty path or
`execl` with 32 or more arguments
([vite-task#896](voidzero-dev/vite-task#896),
[vite-task#865](voidzero-dev/vite-task#865)), by
@wan9chi and @tlq5l.

### Refactor

- Remove the test-only package download wrapper
([#3224](#3224)), by
@jong-kyung.

### Docs

- Explain that `vp check` stops at formatting failures, and that `vp
check` flags go before file paths
([#3262](#3262)), by
@SaKaNa-Y.
- Show how to align an existing `vite` dependency with its override
during a manual npm installation, to avoid `EOVERRIDE`
([#3157](#3157)), by
@SaKaNa-Y.
- Explain how environment variable prefixes such as `FOO=bar command`
work in task commands on every platform
([#3161](#3161)), by
@tartelettie.
- Restore the `/vp-setup` redirect and the redirects for moved guide
pages ([#3271](#3271)), by
@fengmk2.
- Align the labels of "See [...]" section links with their target titles
([#3231](#3231)), by
@yamaurakazuto.

### Chore

- Bump vite-task to `40cb9ca`; its user-facing changes are listed above
([#3246](#3246),
[#3280](#3280)), by
@wan9chi.
- Keep CI working on the Node.js 26 LTS and Ubuntu 24.04, cap job
runtimes, reduce Node.js downloads, avoid upgrade build and snapshot
download timeouts, pin Nushell, and restore Namespace Linux runners
([#3198](#3198),
[#3258](#3258),
[#3266](#3266),
[#3268](#3268),
[#3303](#3303),
[#3309](#3309),
[#3320](#3320),
[#3332](#3332)), by
@fengmk2 and @wan9chi.
- Add automated issue triage
([#3253](#3253),
[#3260](#3260)), by
@Boshen and @fengmk2.
- Run the upstream dependency upgrade with Kimi K3.1 Pro and report its
timeouts ([#3314](#3314),
[#3304](#3304)), by
@Brooooooklyn and @wan9chi.
- Stabilize and trim tests: rerun ESLint and Prettier migration fixtures
with `--full`, stabilize pnpm setup and Bun snapshots, update the tiptap
ecosystem pin, use a recorded package in the install shortcut case, and
remove duplicate `devEngines` parse tests
([#3193](#3193),
[#3196](#3196),
[#3242](#3242),
[#3305](#3305),
[#3301](#3301)), by
@liangmiQwQ, @fengmk2, @wan9chi, and @Brooooooklyn.
- Update Rust crates, synchronize workspace dependency requirements, and
stop installing `dprint` and `taplo` in `just init`
([#3234](#3234),
[#3310](#3310),
[#3250](#3250)), by
@renovate[bot], @leaysgur, and @fengmk2.
- Refine contributor guidance: the release-manager skill, isolated CLI
bootstrap checks in `AGENTS.md`, and the Rolldown exports in the CLI
bundling notes
([#3207](#3207),
[#3238](#3238),
[#3316](#3316)), by
@fengmk2 and @liangmiQwQ.

### Bundled Versions

| Tool | Version | Source | Changelog |
| --------------- | ---------- |
----------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| vite | `8.3.5` |
[`981f07f`](vitejs/vite@981f07f)
| unchanged |
| rolldown | `1.2.16` |
[`de6facf`](rolldown/rolldown@de6facf)
| [1.2.16](https://github.com/rolldown/rolldown/releases/tag/v1.2.16) |
| oxc-node | `1.0.1` |
[`7ff14c3`](oxc-project/oxc-node@7ff14c3)
| [1.0.1](https://github.com/oxc-project/oxc-node/releases/tag/v1.0.1) |
| tsdown | `0.23.4` | [npm](https://npmx.dev/package/tsdown/v/0.23.4) |
[0.23.2](https://github.com/rolldown/tsdown/releases/tag/v0.23.2),
[0.23.3](https://github.com/rolldown/tsdown/releases/tag/v0.23.3),
[0.23.4](https://github.com/rolldown/tsdown/releases/tag/v0.23.4) |
| vitest | `5.1.0` | [npm](https://npmx.dev/package/vitest/v/5.1.0) |
[5.1.0](https://github.com/vitest-dev/vitest/releases/tag/v5.1.0) |
| oxlint | `1.91.0` | [npm](https://npmx.dev/package/oxlint/v/1.91.0) |
[1.90.0](https://github.com/oxc-project/oxc/releases/tag/oxlint_v1.90.0),
[1.91.0](https://github.com/oxc-project/oxc/releases/tag/oxlint_v1.91.0)
|
| oxlint-tsgolint | `7.0.2005` |
[npm](https://npmx.dev/package/oxlint-tsgolint/v/7.0.2005) |
[7.0.2005](https://github.com/oxc-project/tsgolint/releases/tag/v7.0.2005)
|
| oxfmt | `0.76.0` | [npm](https://npmx.dev/package/oxfmt/v/0.76.0) |
[0.75.0](https://github.com/oxc-project/oxc/releases/tag/oxfmt_v0.75.0),
[0.76.0](https://github.com/oxc-project/oxc/releases/tag/oxfmt_v0.76.0)
|

### Upgrade

```bash
vp upgrade
```

### New Contributors

@yamaurakazuto, @tartelettie, @pweyck, @jasonkuhrt

**Full Changelog**:
v1.4.0...v1.5.0

---

Merging this PR will trigger the release workflow.

---------

Co-authored-by: voidzero-guard[bot] <278573678+voidzero-guard[bot]@users.noreply.github.com>
Co-authored-by: MK (fengmk2) <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@BrewTestBot BrewTestBot mentioned this pull request Nov 4, 2026
vite-plus 1.5.0 Homebrew/homebrew-core#323336
Merged
@fengmk2 fengmk2 mentioned this pull request Nov 4, 2026
fix(oxlint,oxfmt): resolve Vite+ config root from the config file directory oxc-project/oxc#28801
Merged
leaysgur added a commit to oxc-project/oxc that referenced this pull request Nov 6, 2026
@fengmk2 @claude @leaysgur
fix(oxlint,oxfmt): resolve Vite+ config root from the config file dir…
fa66fde
…ectory (#28801)

In Vite+ mode, Oxlint and Oxfmt loaded `vite.config.*` with
`resolveConfig({ configFile }, "build")`. Vite resolves an unset or
relative `root` from `process.cwd()`. The LSP cwd can be another folder
of a multi-root workspace. Plugins such as TanStack Start then read
files from the wrong project, and the config fails to load.

This PR uses `resolveConfigFromFile()` from `vite-plus` 1.5.0
(voidzero-dev/vite-plus#3249). It resolves an unset or relative `root`
from the config file's directory and keeps the user's `root`.

Assume the cwd is `/work/editor` and the config is
`/repo/vite.config.ts`:

| Config `root` | Before | After |
| --- | --- | --- |
| Unset | `/work/editor` | `/repo` |
| `"app"` | `/work/editor/app` | `/repo/app` |
| `"/srv/site"` | `/srv/site` | `/srv/site` |

- If the installed `vite-plus` does not export `resolveConfigFromFile`
(older than 1.5.0), the loader falls back to `resolveConfig()` and keeps
the old cwd-based behavior. The optional peer range is `"vite-plus":
"*"`, so older versions can still occur.
- The `vite-plus` catalog moves to 1.5.0.
- A scoped override `vite-plus>vite:
npm:@voidzero-dev/[email protected]` keeps the Vite+ core for
`vite-plus`. The global `vite` override replaced the core with upstream
Vite, which ignores the internal option that `resolveConfigFromFile`
uses. Keep this override in sync with the `vite-plus` catalog version.
- The Oxfmt CLI output normalizer now matches the shorter diagnostic
format that the Vite+ core prints.

The LSP binary selection in multi-root workspaces (the first problem in
the issue) is tracked in oxc-project/oxc-vscode#145 and
oxc-project/oxc-vscode#418.

Refs voidzero-dev/vite-plus#3217

This PR was prepared with AI assistance (Claude Code).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: leaysgur <[email protected]>
@jasonkuhrt jasonkuhrt mentioned this pull request Nov 21, 2026
fix(cli): load task and tool metadata without resolving Vite #3187
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@fengmk2 fengmk2 fengmk2 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@fengmk2 fengmk2

Labels

preview-build Publish this PR's commits to the registry bridge as preview builds test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@leaysgur @fengmk2 @liangmiQwQ
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.