-
Notifications
You must be signed in to change notification settings - Fork 151
Plugin config hook tasks are silently ignored by vp run #1211
Copy link
Copy link
Labels
Description
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 thatbuild:prodandbuild:devare missing from the task list - Run
vp run build:prod— observeTask "build:prod" not found. - For comparison, add a static
runfield tovite.config.ts(without plugin) and confirmvp runshows 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.1Used Package Manager
pnpm
Logs
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
None yet
Effort
None yet