File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ NormalModule.prototype.readableIdentifier = function(requestShortener) {
3838
3939NormalModule . prototype . fillLoaderContext = function fillLoaderContext ( loaderContext , options , compilation ) {
4040 loaderContext . webpack = true ;
41- compilation . applyPlugins ( "normal-module-loader" , loaderContext , this ) ;
4241 loaderContext . emitFile = function ( name , content , sourceMap ) {
4342 if ( typeof sourceMap === "string" ) {
4443 this . assets [ name ] = new OriginalSource ( content , sourceMap ) ;
@@ -48,8 +47,10 @@ NormalModule.prototype.fillLoaderContext = function fillLoaderContext(loaderCont
4847 this . assets [ name ] = new RawSource ( content ) ;
4948 }
5049 } . bind ( this ) ;
50+ loaderContext . _module = this ;
5151 loaderContext . _compilation = compilation ;
5252 loaderContext . _compiler = compilation . compiler ;
53+ compilation . applyPlugins ( "normal-module-loader" , loaderContext , this ) ;
5354} ;
5455
5556NormalModule . prototype . disconnect = function disconnect ( ) {
You can’t perform that action at this time.
0 commit comments