You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 12c35d7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(analyzable): keep a runtime's url map under HMR and hint the served-both-ways fix
A hot update re-ships a runtime module whenever its generated code changes and
runs it from the update chunk, so a map whose every url is spelled in full at
code generation is never stale: it is written out under HMR too, and the runtime
form is kept only for a name the fill spells or an update chunk at another depth.
The served-both-ways bailout now names the public paths that need no base.
// Why a public path needing a base could not be spelled from the chunk holding it.
208
208
constSERVED_BAILOUT=
209
-
"this module is in a chunk webpack loads through output.publicPath and in one it does not, so no one path back to the output root fits both";
209
+
'this module is in a chunk webpack loads through output.publicPath and in one it does not, so no one path back to the output root fits both (a root-absolute or absolute output.publicPath, or "auto", is read the same from both)';
210
+
211
+
// Why a runtime's url map kept the runtime form under HMR: an update re-ships the
212
+
// runtime module only when its own code changes, and runs it from the update chunk.
213
+
constHOT_NAME_BAILOUT=
214
+
"a hot update can move this name without changing the runtime module that spells it, so the update would not carry the new one";
215
+
constHOT_DEPTH_BAILOUT=
216
+
"a hot update runs the runtime module from output.hotUpdateChunkFilename, which sits at another depth than the runtime chunk";
210
217
211
218
/**
212
219
* @import {
@@ -253,6 +260,7 @@ const CHUNK_SPECIFIER_PART_KINDS = new Set(["chunk", "cssChunk"]);
0 commit comments