webpack-hot-middleware
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -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 @@ } |
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20519
391