Describe the bug
When a Vite plugin adds run.tasks via the config hook, vp run does not recognize those tasks. Only tasks defined statically in vite.config.ts or in package.json scripts are visible.
Reproduction
https://github.com/user/vp-plugin-config-repro
Steps to reproduce
- Create the project with the above files
- Run
pnpm install
- Run
vp run — observe that build:prod and build:dev are missing from the task list
- Run
vp run build:prod — observe Task "build:prod" not found.
- For comparison, add a static
run field to vite.config.ts (without plugin) and confirm vp run shows the tasks correctly
System Info
vp v0.1.14
Tools:
vite v8.0.2
rolldown v1.0.0-rc.11
vitest v4.1.1
oxfmt v0.42.0
oxlint v1.57.0
oxlint-tsgolint v0.17.3
tsdown v0.21.4
Environment:
Package manager pnpm v10.33.0
Node.js v24.14.1
Used Package Manager
pnpm
Logs
Validations
Describe the bug
When a Vite plugin adds
run.tasksvia theconfighook,vp rundoes not recognize those tasks. Only tasks defined statically invite.config.tsor inpackage.jsonscripts are visible.Reproduction
https://github.com/user/vp-plugin-config-repro
Steps to reproduce
pnpm installvp run— observe thatbuild:prodandbuild:devare missing from the task listvp run build:prod— observeTask "build:prod" not found.runfield tovite.config.ts(without plugin) and confirmvp runshows the tasks correctlySystem Info
Used Package Manager
pnpm
Logs
Validations