@@ -114,6 +114,7 @@ Compilation.prototype.buildModule = function(module, thisCallback) {
114114 this . applyPlugins ( "build-module" , module ) ;
115115 if ( module . building ) return module . building . push ( thisCallback ) ;
116116 var building = module . building = [ thisCallback ] ;
117+
117118 function callback ( err ) {
118119 module . building = undefined ;
119120 building . forEach ( function ( cb ) {
@@ -140,6 +141,7 @@ Compilation.prototype.buildModule = function(module, thisCallback) {
140141
141142Compilation . prototype . processModuleDependencies = function ( module , callback ) {
142143 var dependencies = [ ] ;
144+
143145 function addDependency ( dep ) {
144146 for ( var i = 0 ; i < dependencies . length ; i ++ ) {
145147 if ( dep . isEqualResource ( dependencies [ i ] [ 0 ] ) ) {
@@ -148,6 +150,7 @@ Compilation.prototype.processModuleDependencies = function(module, callback) {
148150 }
149151 dependencies . push ( [ dep ] ) ;
150152 }
153+
151154 function addDependenciesBlock ( block ) {
152155 if ( block . dependencies ) {
153156 block . dependencies . forEach ( addDependency ) ;
@@ -211,6 +214,7 @@ Compilation.prototype.addModuleDependencies = function(module, dependencies, bai
211214 return ! d . optional ;
212215 } ) . length === 0 ;
213216 }
217+
214218 function errorOrWarningAndCallback ( err ) {
215219 if ( isOptional ( ) ) {
216220 return warningAndCallback ( err ) ;
@@ -455,6 +459,7 @@ Compilation.prototype.rebuildModule = function(module, thisCallback) {
455459 return module . rebuilding . push ( thisCallback ) ;
456460 }
457461 var rebuilding = module . rebuilding = [ thisCallback ] ;
462+
458463 function callback ( err ) {
459464 module . rebuilding = undefined ;
460465 rebuilding . forEach ( function ( cb ) {
@@ -624,6 +629,7 @@ Compilation.prototype.processDependenciesBlockForChunk = function processDepende
624629 this . processDependenciesBlockForChunk ( b , c ) ;
625630 } , this ) ;
626631 }
632+
627633 function iteratorDependency ( d ) {
628634 if ( ! d . module ) {
629635 return ;
@@ -656,6 +662,7 @@ Compilation.prototype.removeChunkFromDependencies = function removeChunkFromDepe
656662 this . removeChunkFromDependencies ( b , c ) ;
657663 } , this ) ;
658664 } , this ) ;
665+
659666 function iteratorDependency ( d ) {
660667 if ( ! d . module ) {
661668 return ;
@@ -814,7 +821,7 @@ Compilation.prototype.createChunkAssets = function createChunkAssets() {
814821 var chunkHash = chunk . hash ;
815822 var source ;
816823 var file ;
817- var filenameTemplate = chunk . filenameTemplate ? chunk . filenameTemplate :
824+ var filenameTemplate = chunk . filenameTemplate ? chunk . filenameTemplate :
818825 chunk . initial ? filename :
819826 chunkFilename ;
820827 try {
@@ -860,7 +867,7 @@ Compilation.prototype.createChunkAssets = function createChunkAssets() {
860867 }
861868} ;
862869
863- Compilation . prototype . getPath = function ( filename , data ) {
870+ Compilation . prototype . getPath = function ( filename , data ) {
864871 data = data || { } ;
865872 data . hash = data . hash || this . hash ;
866873 return this . mainTemplate . applyPluginsWaterfall ( "asset-path" , filename , data ) ;
0 commit comments