Socket
Socket
Sign inDemoInstall

webpack-hot-middleware

Package Overview
Dependencies
Maintainers
1
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.2.0 to 2.2.1

12

client.js

@@ -29,3 +29,11 @@ /*eslint-env browser*/

connect();
if (typeof window.EventSource !== 'function') {
console.warn(
"webpack-hot-middleware's client requires EventSource to work. " +
"You should include a polyfill if you want to support this browser: " +
"https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events#Tools"
);
} else {
connect();
}

@@ -108,3 +116,3 @@ function connect() {

}
processUpdate(obj.hash, obj.modules, options.reload);

@@ -111,0 +119,0 @@ }

2

package.json
{
"name": "webpack-hot-middleware",
"version": "2.2.0",
"version": "2.2.1",
"description": "Webpack hot reloading you can attach to your own server",

@@ -5,0 +5,0 @@ "main": "middleware.js",

@@ -99,3 +99,3 @@ # Webpack Hot Middleware

This module expects to remain running while you make changes to your webpack bundle, if you use a process manager like nodemon then you will likely see very slow changes on the client side. If you want to reload the server component, either use a separate process, or find a way to reload your server routes without restarting the whole process.
This module expects to remain running while you make changes to your webpack bundle, if you use a process manager like nodemon then you will likely see very slow changes on the client side. If you want to reload the server component, either use a separate process, or find a way to reload your server routes without restarting the whole process. See https://github.com/glenjamin/ultimate-hot-reloading-example for an example of one way to do this.

@@ -102,0 +102,0 @@ ## License

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