webpack-contrib / webpack-hot-middleware

Webpack hot reloading you can attach to your own server
MIT License
2.34k stars 296 forks source link

Replace usage of `Object.fromEntries` with `reduce` #437

Closed BPScott closed 1 year ago

BPScott commented 1 year ago

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. 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.

linux-foundation-easycla[bot] commented 1 year ago

CLA Signed

The committers listed above are authorized under a signed CLA.

alexander-akait commented 1 year ago

Thank you