-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
var global = (function() { return this; })();
/**
* WebSocket constructor.
*/
var WebSocket = global.WebSocket || global.MozWebSocket;global is undefined so, it throw error. But when I test using ws with browserify, it was window.
I am trying to use react-hot-loader and can't figure this out.
My config for entry is:
[
`webpack-dev-server/client?${webpackDevServerUrl}`,
'webpack/hot/only-dev-server',
'src/js/index'
]Hope someone who experienced this could help. Thanks a lot.
Reactions are currently unavailable