@@ -30,7 +30,7 @@ module.exports = class MainTemplate extends Template {
3030 const buf = [ ] ;
3131 if ( chunk . entryModule ) {
3232 buf . push ( "// Load entry module and return exports" ) ;
33- buf . push ( `return ${ this . renderRequireFunctionForModule ( hash , chunk , JSON . stringify ( chunk . entryModule . id ) ) } (${ this . requireFn } .s = " ${ JSON . stringify ( chunk . entryModule . id ) } " );` ) ;
33+ buf . push ( `return ${ this . renderRequireFunctionForModule ( hash , chunk , JSON . stringify ( chunk . entryModule . id ) ) } (${ this . requireFn } .s = ${ JSON . stringify ( chunk . entryModule . id ) } );` ) ;
3434 }
3535 return this . asString ( buf ) ;
3636 } ) ;
@@ -179,7 +179,7 @@ module.exports = class MainTemplate extends Template {
179179 buf . push ( this . asString ( this . applyPluginsWaterfall ( "require-extensions" , "" , chunk , hash ) ) ) ;
180180 buf . push ( "" ) ;
181181 buf . push ( this . asString ( this . applyPluginsWaterfall ( "startup" , "" , chunk , hash ) ) ) ;
182- let source = this . applyPluginsWaterfall ( "render" , new OriginalSource ( this . prefix ( buf , " \t" ) + `\n` , `webpack/bootstrap ${ hash } ` ) , chunk , hash , moduleTemplate , dependencyTemplates ) ;
182+ let source = this . applyPluginsWaterfall ( "render" , new OriginalSource ( this . prefix ( buf , " \t" ) + "\n" , `webpack/bootstrap ${ hash } ` ) , chunk , hash , moduleTemplate , dependencyTemplates ) ;
183183 if ( chunk . hasEntryModule ( ) ) {
184184 source = this . applyPluginsWaterfall ( "render-with-entry" , source , chunk , hash ) ;
185185 }
@@ -193,7 +193,7 @@ module.exports = class MainTemplate extends Template {
193193 }
194194
195195 renderAddModule ( hash , chunk , varModuleId , varModule ) {
196- return this . applyPluginsWaterfall ( "add-module" , `modules[" ${ varModuleId } " ] = ${ varModule } ;` , chunk , hash , varModuleId , varModule ) ;
196+ return this . applyPluginsWaterfall ( "add-module" , `modules[${ varModuleId } ] = ${ varModule } ;` , chunk , hash , varModuleId , varModule ) ;
197197 }
198198
199199 renderCurrentHashCode ( hash , length ) {
0 commit comments