-
Notifications
You must be signed in to change notification settings - Fork 144
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
[Feature]: Build orchestration API #2916
Comments
I totally agree, Rsbuild needs to provide similar capabilities. First we need to clarify what is the main difference between the proposed |
I'm beyond tired of having to maintain "build CLIs". Vite's approach is correct here. It allows a plugin / framework to define the order / interplay between builds completely within their plugin. No more |
I'd recommend implementing it via the JS API and exposing that to plugins / config via the above convenience layer so it can be used "internally" instead of "externally". |
Ok, so our goal is to allow Rsbuild plugin to orchestrate the build process, instead of calling JS API via a custom CLI. This should be useful for frameworks like Remix. We will look at the design of Vite 6 next week and consider how Rsbuild can achieve this. |
What problem does this feature solve?
In some situations (such as RSC) we need to be able to orchestrate the order and number of times an environments build is ran. A simple example of this goes something like this:
What does the proposed API look like?
Vite's new environments API comes with a
builder.buildApp
API and I propose something very similar for use here:This would allow us to write logic such as:
The text was updated successfully, but these errors were encountered: