You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. The problem was that there was a check missing against merging a RegExp against another RegExp. In this case in the configuration definition it was set up so that the optimization part was merged to itself optimization due to a ... elsewhere in the configuration.
@artem-malko I've fixed the issue in 5.1.3 but I would recommend against doing ...clientConfig.optimization, in your production configuration as that will cause the same configuration to appear twice although it will be merged away. Can you explain why you did your own merge for that particular configuration? What's the use case?
Reproducible test repo: https://github.com/artem-malko/webpack-5-beta-config-bug
Ref: webpack/webpack#11396
Simple reproducible example
test
isObject
The text was updated successfully, but these errors were encountered: