Socket
Socket
Sign inDemoInstall

webpack-hot-middleware

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-hot-middleware - npm Package Compare versions

Comparing version 2.25.3 to 2.25.4

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [2.25.4](https://github.com/webpack/webpack-dev-middleware/compare/v2.25.3...v2.25.4) (2023-06-21)
### Bug Fixes
* use reduce instead of Object.fromEntries to support old browsers
### [2.25.3](https://github.com/webpack/webpack-dev-middleware/compare/v2.25.2...v2.25.3) (2022-11-08)

@@ -7,0 +14,0 @@

9

client.js

@@ -18,5 +18,8 @@ /*eslint-env browser*/

if (__resourceQuery) {
var overrides = Object.fromEntries(
new URLSearchParams(__resourceQuery.slice(1))
);
var params = Array.from(new URLSearchParams(__resourceQuery.slice(1)));
var overrides = params.reduce(function (memo, param) {
memo[param[0]] = param[1];
return memo;
}, {});
setOverrides(overrides);

@@ -23,0 +26,0 @@ }

{
"name": "webpack-hot-middleware",
"version": "2.25.3",
"version": "2.25.4",
"description": "Webpack hot reloading you can attach to your own server",

@@ -5,0 +5,0 @@ "keywords": [

@@ -33,3 +33,9 @@ # Webpack Hot Middleware

3. Add `'webpack-hot-middleware/client'` into the `entry` array.
3. Add `'webpack-hot-middleware/client'` into an array of the `entry`
object. For example:
```js
entry: {
main: ['webpack-hot-middleware/client', './src/main.js']
}
```
This connects to the server to receive notifications when the bundle

@@ -36,0 +42,0 @@ rebuilds and then updates your client bundle accordingly.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc