Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Configuration merge#4093

zhaogongchengsi started this conversation inIdeas
Sep 1, 2023· 2 comments· 5 replies
Discussion options

If I need multiple configurations to merge when I use @ rspack/core to call through api, can I provide a mergeConfig api function to merge configuration files?

constnewConfig=mergeConfig(config1,config2, ....)
You must be logged in to vote

Replies: 2 comments 5 replies

Comment options

actually webpack supports extends which is for thishttps://webpack.js.org/configuration/extending-configurations/#extends , we can support this in future

You must be logged in to vote
5 replies
@hardfist
Comment options

or you can use webpack-merge directly

@zhaogongchengsi
Comment options

I'm afraid it's not perfectly compatible.

@hardfist
Comment options

why is it not compatible?

@dgoldstein0
Comment options

also wondering what's wrong with webpack-merge.https://rspack.rs/config/#merge-configurations even recommends it so if it's not compatible in some ways the docs should be clarified

@chenjiahan
Comment options

@dgoldstein0
webpack-merge is compatible with Rspack config, if you encounter any problems, you can share them with us

Comment options

related:#11408

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
4 participants
@zhaogongchengsi@dgoldstein0@chenjiahan@hardfist

[8]ページ先頭

©2009-2025 Movatter.jp