Skip to content

Commit a71dff9

Browse files
chore(build): sync framework-plugins.ts with #497's current head (comment-only)
1 parent 23c1c9a commit a71dff9

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎packages/agent-bundle/src/build/framework-plugins.ts‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/**
22
* The Rsbuild plugins agent-bundle registers itself in the configs it
33
* synthesizes, keyed by plugin `name`. Rsbuild's plugin manager appends every
4-
* plugin it is handed and never dedupes by name, and both composition paths
5-
* (`mergeRslibConfig` for artifact scripts, MCP entries, hooks, and the
6-
* package build; `mergeRsbuildConfig` for MCP App views) concatenate `plugins`
7-
* arrays, so a consumer who adds one of these through `tools.rsbuild.plugins`
8-
* registers it twice. `validateTools` reports that as AB4724 instead.
4+
* plugin it is handed and never dedupes by name, and both engines the layers
5+
* from `composeToolsLayers` are handed to (`mergeRslibConfig` for artifact
6+
* scripts, MCP entries, hooks, and the package build; `mergeRsbuildConfig` for
7+
* MCP App views) concatenate `plugins` arrays, so a consumer who adds one of
8+
* these through `tools.rsbuild.plugins` registers it twice. `validateTools`
9+
* reports that as AB4724 instead.
910
*
1011
* The names are literals rather than instances so the validator does not
1112
* load a bundler plugin to read a string; `framework-plugins.test.ts` pins

0 commit comments

Comments
 (0)