Replies: 1 comment
-
I believe this is because to set up HMR, you should have some code like:
Usually at the top-level of your application. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When snowpack-serving the below foo.js...
... the below four lines gets added to the above only based on the existence of
import.meta
in the above file. For eg, if I add a comment//import.meta
to the above, then the below four lines gets added in the serve.My understanding is that these four lines should always get added to all modules in the import graph during snowpack-serve... Isn't it?
What I notice is bubble tends to propagate to the other modules that imports the above as dependency - irrespective of the above four lines being added or not. Little clarity on the above four lines (esp line-2 where createHotContext is called) would help!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions