File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) {
4040 chunkHashMap [ c . id ] = undefined ;
4141 else
4242 chunkHashMap [ c . id ] = c . renderedHash ;
43- chunkNameMap [ c . id ] = c . name || c . id ;
43+ chunkNameMap [ c . id ] = c . name || undefined ;
4444 c . chunks . forEach ( addChunk ) ;
4545 } ( chunk ) ) ;
4646 return this . asString ( [
@@ -63,7 +63,7 @@ JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) {
6363 JSON . stringify ( chunkFilename )
6464 . replace ( Template . REGEXP_HASH , "\" + " + this . renderCurrentHashCode ( hash ) + " + \"" )
6565 . replace ( Template . REGEXP_CHUNKHASH , "\" + " + JSON . stringify ( chunkHashMap ) + "[chunkId] + \"" )
66- . replace ( Template . REGEXP_NAME , "\" + " + JSON . stringify ( chunkNameMap ) + "[chunkId] + \"" )
66+ . replace ( Template . REGEXP_NAME , "\" + ( " + JSON . stringify ( chunkNameMap ) + "[chunkId]||chunkId) + \"" )
6767 . replace ( Template . REGEXP_ID , "\" + chunkId + \"" ) + ";" ,
6868 "head.appendChild(script);"
6969 ] ) ,
You can’t perform that action at this time.
0 commit comments