Skip to content

rfc: vp hooks#1348

Closed
ubugeeei wants to merge 4 commits intomainfrom
rfc/vp-hooks
Closed

rfc: vp hooks#1348
ubugeeei wants to merge 4 commits intomainfrom
rfc/vp-hooks

Conversation

@ubugeeei
Copy link
Copy Markdown
Collaborator

@ubugeeei ubugeeei commented Apr 9, 2026

No description provided.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 9, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit e69c27e
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69e5bc9add2aea00085a9368

@ubugeeei ubugeeei changed the title feat: [RFC] vp hooks rfc: vp hooks Apr 9, 2026
@cpojer
Copy link
Copy Markdown
Member

cpojer commented Apr 14, 2026

@ubugeeei My primary question for this RFC is: what is the motivation for adding this? It raises the complexity of Vite+ significantly, and I'm not sure what it allows us to do that you cannot already do with Vite Task.

@ubugeeei
Copy link
Copy Markdown
Collaborator Author

@cpojer

The motivation was to maintain interfaces like vp check, vp build, and vp dev while incorporating user-specific pipelines.

However, when workflows combine multiple components, it felt counterproductive that users still had to write tasks like vp run all-check themselves.

@ubugeeei
Copy link
Copy Markdown
Collaborator Author

Having Vite+'s own plugin system, allowing for extensions using the same interface, seems like a natural motivation.

@cpojer
Copy link
Copy Markdown
Member

cpojer commented Apr 20, 2026

I think the right "primitive" here is still Vite Task, that is executed via vp run. I don't really see how hooks are adding value beyond that.

@ubugeeei
Copy link
Copy Markdown
Collaborator Author

ubugeeei commented Apr 20, 2026

For example, are you suggesting that we should use commands like sh pre-build.sh && vp dev, vp exec cspell && vp check, vp run my-build, or vp run my-check?

I didn’t want to be constantly bothered by inconsistent naming and interfaces, so I thought that an API allowing us to embed custom pipelines into vp dev and vp check (and others) would solve this problem.

@cpojer
Copy link
Copy Markdown
Member

cpojer commented Apr 20, 2026

Thanks for explaining! Let's discuss some of these proposals on Discord first before proposing them as RFCs so we make sure we are aligned. For now, we don't plan on adding hooks and we'll be revisiting a potential plugin system in Q3 or Q4 this year.

@cpojer cpojer closed this Apr 20, 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.

2 participants