-
Notifications
You must be signed in to change notification settings - Fork 120
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]: Plugin apply in plugin #3253
Comments
Recursively registering plugins may not be a good idea, here is an reference: vitejs/vite#2484 |
I think Rsbuild can support nested function myPlugin() {
return [
fooPlugin()
barPlugin()
];
}
export default {
plugins: [myPlugin()]
} |
Okay, This cannot solve this problem, but seems it's helpful for preset to select plugin sets. |
Sound good, I think what if we expand full Rspack configuration can solve it same as the issue of vite. |
What problem does this feature solve?
As a infrastructure developer, we provides many plugins for team member to assemble for match the business cases.
Such as:
Wanna to add the
pluginContentSecretly
into one of environment sets of thepluginMultiBundle
.Actually I can extract implements of the
pluginContentSecretly
and partially call the same API method set inpluginMultiBundle
, But it's ugly.The
pluginContentSecretly
content see like:The
pluginMultiBundle
content see like:What does the proposed API look like?
We can apply the plugins in another plugin, I think the plugin lifecycle well be modify. Should discuss about such how about the setting override, plugin order, etc..
The text was updated successfully, but these errors were encountered: