Skip to content
Discussion options

You must be logged in to vote

Both extends and webpack-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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chenjiahan
Comment options

Answer selected by luzfcb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants