-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Merging complete webpack configs using mergeWithRules
empties primitive arrays
#151
Comments
Can you provide a full example of the configuration you are trying to merge as above? Ideally this should be something I can run and convert as a test. It's possible In my personal work, I always use regular |
A simple example would be this:
This leaves out all the handling of the I also added runkit links for easier reproducibility:
|
Ok, thanks! I'll work against your examples then. |
I've fixed the throwing part at |
Great, thanks for that! I will try it out and check if it fixes our issue asap. |
I am in the process of upgrading to v4, currently trying to replace former usages of
merge.smart
to merge complete webpack configurations. My current definition usingmergeWithRules
looks like this:There are two issues I am currently having:
resolve.extensions
, otherwise I am getting an errorresolve.extensions
(which contains an array of strings) being an empty array in the resulting config.Am I doing something wrong? How can I merge two complete webpack configurations while still replacing redundant loaders and merging arrays for uniqueness like
resolve.extensions
?The text was updated successfully, but these errors were encountered: