Suspected HMR issue in array-style webpack configs #393

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

Originally created by @AdamWillden on 9/29/2017

I see that array-style webpack config support was added in this commit: 2241c55a90

I'm trying to leverage this functionality with both configs requiring HMR support (herein lies the issue). Whichever config is listed first in the array supports HMR and the other results in failed requests <blah>.hot-update.json 404 (Not Found). Similarly if I comment out any one config the remaining functions with HMR as expected.

Having had a scan of the code, I suspect there's something around the fact the two configs share the same public path. @SteveSandersonMS does it seem likely/possible?

I'd like to provide a PR if you can help with the diagnosis. I may need some help getting the code to build on my machine for testing purposes.

*Originally created by @AdamWillden on 9/29/2017* I see that array-style webpack config support was added in this commit: https://github.com/aspnet/JavaScriptServices/commit/2241c55a9000c83592ea02dab54c6bc4359caacf I'm trying to leverage this functionality with both configs requiring HMR support (herein lies the issue). Whichever config is listed first in the array supports HMR and the other results in failed requests `<blah>.hot-update.json 404 (Not Found)`. Similarly if I comment out any one config the remaining functions with HMR as expected. Having had a scan of the code, I suspect there's something around the fact the two configs share the same public path. @SteveSandersonMS does it seem likely/possible? I'd like to provide a PR if you can help with the diagnosis. I may need some help getting the code to build on my machine for testing purposes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#393
No description provided.