Skip to content

How to make the HMR work? Or will it work? #88

Answered by webJose
samuellawerentz asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, @samuellawerentz. Indeed, HMR is a "hot" issue (pardon the pun) but I can tell you right now it is out of my hands. As I told tudosev in #74, it is a Vite feature that is simply incompatible with multi-project scenarios such as single-spa in development mode.

I'll provide the details of what I know and did here.

Initial Impressions

When I first stumbled upon the error, I was in the middle of writing one of the articles you read. I searched the web but could not find a thing, so I referred myself to the project's source code. There I learned that the "preamble" is a piece of JavaScript that is injected to the webpage in the form of a global object (a property of the global window ob…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samuellawerentz
Comment options

Answer selected by samuellawerentz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants