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

Document webpack change: improve merging of resolve and parsing options #3025

Open
webpack-bot opened this issue May 13, 2019 · 0 comments
Open
Labels
webpack5 Docs for webpack 5
Projects
Milestone

Comments

@webpack-bot
Copy link

A pull request by @sokra was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#9126


improve merging of resolve and parsing options
by rules and via loader API

Objects are deeply merged
Arrays overwrite by default, but can reference old value with "..."

fixes #8968

What kind of change does this PR introduce?
feature, maybe bugfix

Did you add tests for your changes?
yes

Does this PR introduce a breaking change?
yes

What needs to be documented once your changes are merged?
Rule.resolve/Rule.parser objects are now deeply merged.
In array the special "..." item can now be used to reference to old value, while otherwise array values overwrite each other.
This also affects the getResolve(options) API in the loader API

@EugeneHlushko EugeneHlushko added the webpack5 Docs for webpack 5 label May 24, 2019
@sokra sokra added this to Not important in webpack 5 Oct 7, 2020
@sokra sokra moved this from Not important to Advanced configuration in webpack 5 Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webpack5 Docs for webpack 5
Projects
webpack 5
Advanced configuration/code (not impo...
Development

No branches or pull requests

2 participants