The Rspack docs state that when merging configurations array are concatenated, https://rspack.rs/config/extends#:~:text=Arrays%20are%20concatenated
The behavior shown in this repo is that the plugins from the extended config are dropped, unless you add '...' to the plugins array. As far as I can find '...' in plugins is undocumented behavior, and while it works it isn't allowed with Rspack's config types.
yarnyarn rspack serve- Observe that
MyPlugin: The Rspack build process is starting!is in the output, butMyBasePlugin: The Rspack build process is starting!is not. yarn tsc-> no type errors- In
rspack.config.tsuncomment the...in plugins. yarn rspack serve- Observe that the output from both plugins is present.
yarn tsc->Type '"..."' is not assignable to type 'Plugin'.