Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Inconsistent mergeConfig priority #1491

Closed
tmkx opened this issue Feb 1, 2024 · 2 comments
Closed

[Bug]: Inconsistent mergeConfig priority #1491

tmkx opened this issue Feb 1, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@tmkx
Copy link
Contributor

tmkx commented Feb 1, 2024

Version

"@rsbuild/core": "^0.3.11"

Details

In Modern.js, api.useConfigContext() returns the user-defined config. However, in Rsbuild, api.getRsbuildConfig() and api.modifyRsbuildConfig() both return the filled config, I am unsure which one is from rspack and which one is from the user.

How can I change the default rsbuild behavior but still follow the user's config?

Reproduce link

none

Reproduce Steps

none

@tmkx tmkx added the 🐞 bug Something isn't working label Feb 1, 2024
@chenjiahan
Copy link
Member

You can specify the type of Rsbuild config to read by using the type parameter:

image

https://rsbuild.dev/plugins/dev/core#apigetrsbuildconfig

@chenjiahan chenjiahan added help wanted Extra attention is needed and removed 🐞 bug Something isn't working labels Feb 1, 2024
@tmkx
Copy link
Contributor Author

tmkx commented Feb 1, 2024

powerful 👍

@tmkx tmkx closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants