Docs: What are the difference and pros/cons over the new extends feature and the existing merge tools (webpack-merge) #10146
-
Hello, I recently noticed that support for Is the I ask because the Rspack configuration documentation still references It would be helpful if the documentation clarified whether |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Both
I'll update https://rspack.dev/config/#merge-configurations to add these differences. |
Beta Was this translation helpful? Give feedback.
Both
extends
andwebpack-merge
can be used to merge Rspack configuration and their merge results should be basically the same, the main differences are:extends
is a built-in syntax sugar and is only available when using Rspack CLI.webpack-merge
requires an additional npm dependency and can be used in any scenario, such as when using Rspack JS API or other Rspack-based tools.I'll update https://rspack.dev/config/#merge-configurations to add these differences.