@@ -315,9 +315,8 @@ class WebpackBaseBuilder extends Config {
315315
316316 installLoader ( loaders ) {
317317 const dependencies = this . dependencies ;
318- const modules = this . webpackConfig . resolveLoader && this . webpackConfig . resolveLoader . modules ;
319318 const webpackLoaders = this . createLoader ( loaders ) ;
320- this . utils . installLoader ( webpackLoaders , dependencies , modules , this . config . install ) ;
319+ this . utils . installLoader ( webpackLoaders , dependencies , this . modules , this . config . install ) ;
321320 return webpackLoaders ;
322321 }
323322
@@ -335,7 +334,6 @@ class WebpackBaseBuilder extends Config {
335334
336335 createPlugin ( plugins ) {
337336 const webpackPlugins = [ ] ;
338- const modules = this . webpackConfig . resolveLoader && this . webpackConfig . resolveLoader . modules ;
339337 Object . keys ( plugins ) . forEach ( name => {
340338 const configInfo = plugins [ name ] ;
341339 if ( this . isUse ( configInfo ) ) {
@@ -351,7 +349,7 @@ class WebpackBaseBuilder extends Config {
351349 let Clazz = configInfo . name ;
352350 if ( this . utils . isString ( configInfo . name ) ) {
353351 pluginName = configInfo . name ;
354- Clazz = this . utils . requireModule ( configInfo . name , modules ) ;
352+ Clazz = this . utils . requireModule ( configInfo . name , this . modules ) ;
355353 } else if ( this . utils . isFunction ( configInfo . name ) ) {
356354 pluginName = configInfo . name . name ;
357355 }
@@ -377,7 +375,6 @@ class WebpackBaseBuilder extends Config {
377375 }
378376
379377 installPlugin ( plugins ) {
380- const modules = this . webpackConfig . resolveLoader && this . webpackConfig . resolveLoader . modules ;
381378 const dependencies = this . dependencies ;
382379 const enablePlugins = { } ;
383380 Object . keys ( plugins ) . forEach ( name => {
@@ -386,7 +383,7 @@ class WebpackBaseBuilder extends Config {
386383 enablePlugins [ name ] = pluginInfo ;
387384 }
388385 } ) ;
389- return this . utils . installPlugin ( enablePlugins , dependencies , modules , this . config . install ) ;
386+ return this . utils . installPlugin ( enablePlugins , dependencies , this . modules , this . config . install ) ;
390387 }
391388
392389 adapterPlugin ( plugins ) {
@@ -449,16 +446,14 @@ class WebpackBaseBuilder extends Config {
449446
450447 combineWebpackConfig ( config ) {
451448 this . t3 = Date . now ( ) ;
452- const outerWebpackConfig = this . analysisWebpackConfig ( config ) ;
453- const configWebpackConfig = this . mergeWebpackConfig ( this . webpackConfig , outerWebpackConfig ) ;
454449 const buildWebpackConfig = {
455450 output : this . createOutput ( config ) ,
456451 module : {
457452 rules : this . createWebpackLoader ( config )
458453 } ,
459454 plugins : this . createWebpackPlugin ( config )
460455 } ;
461- const webpackConfig = this . mergeWebpackConfig ( configWebpackConfig , buildWebpackConfig ) ;
456+ const webpackConfig = this . mergeWebpackConfig ( this . nativeWebpackConfig , buildWebpackConfig ) ;
462457 this . t4 = Date . now ( ) ;
463458 this . logger . cost ( ) ;
464459 return webpackConfig ;
0 commit comments