Skip to content

Plugin config hook tasks are silently ignored by vp run #1211

@kazupon

Description

@kazupon

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

  1. Create the project with the above files
  2. Run pnpm install
  3. Run vp run — observe that build:prod and build:dev are missing from the task list
  4. Run vp run build:prod — observe Task "build:prod" not found.
  5. 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

Metadata

Metadata

Assignees

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions