Occasionally I need to test on legacy browsers. webpack-hot-middleware has pretty good support for older browsers but I've spotted a case where it could broaden its support. Replacing Object.fromEntries with reduce should bring back support for Chrome 49-72, Safari 10.1-12.0 and Firefox 44-62 (based upon comparing caniuse tables for Object.fromEntries and UrlSearchParams), assuming that "browsers that support UrlSearchParams" is the bottom boundary.
This PR contains a:
Motivation / Use-Case
Occasionally I need to test on legacy browsers.
webpack-hot-middleware
has pretty good support for older browsers but I've spotted a case where it could broaden its support. ReplacingObject.fromEntries
withreduce
should bring back support for Chrome 49-72, Safari 10.1-12.0 and Firefox 44-62 (based upon comparing caniuse tables forObject.fromEntries
andUrlSearchParams
), assuming that "browsers that supportUrlSearchParams
" is the bottom boundary.