HMR with webpack 2 (beta) #1528

Closed
opened 2025-08-09 17:20:29 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @moverware on 7/8/2016

Unless I am missing something, I do not think that the hot module reloading with the SpaServices.Webpack will work with webpack 2.0. According to the change log:

HMR communication

In webpack 1 the update signal used the Web Messaging API (postMessage). Webpack 2 uses a standard event emitter to receive the event. This means WebSocket must be inline in the bundle.

webpack-dev-server has inlined mode as default now.

This should allow to use the webpack-dev-server to update code in WebWorkers.

And as far as I understand it, the spaservices invoke a webpack-dev-server at some point correct? So it might be possible that I am totally missing something but I can not seem to get it to work with webpack 2.

*Originally created by @moverware on 7/8/2016* Unless I am missing something, I do not think that the hot module reloading with the SpaServices.Webpack will work with webpack 2.0. According to the change log: > HMR communication > > In webpack 1 the update signal used the Web Messaging API (postMessage). Webpack 2 uses a standard event emitter to receive the event. This means WebSocket must be inline in the bundle. > > webpack-dev-server has inlined mode as default now. > > This should allow to use the webpack-dev-server to update code in WebWorkers. And as far as I understand it, the spaservices invoke a webpack-dev-server at some point correct? So it might be possible that I am totally missing something but I can not seem to get it to work with webpack 2.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1528
No description provided.