Skip to content

feat: environmentConfigResolved hook #20171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

patak-dev
Copy link
Member

Description

After #20170, there isn't an easy way to get the resolved plugins for each environment before the post-config stage kicks in.

This PR introduces an experimental environmentConfigResolved hook that is called for each environment. The environment.config.plugins for each environment get called, meaning that plugins returned in applyToEnvironment would also participate (and that if a plugin was removed for an environment, their environmentConfigResolved will not be called for that environment).

@patak-dev patak-dev added p2-nice-to-have Not breaking anything but nice to have (priority) feat: environment API Vite Environment API labels Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: environment API Vite Environment API p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant