@@ -315,9 +315,8 @@ class WebpackBaseBuilder extends Config {
315
315
316
316
installLoader ( loaders ) {
317
317
const dependencies = this . dependencies ;
318
- const modules = this . webpackConfig . resolveLoader && this . webpackConfig . resolveLoader . modules ;
319
318
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 ) ;
321
320
return webpackLoaders ;
322
321
}
323
322
@@ -335,7 +334,6 @@ class WebpackBaseBuilder extends Config {
335
334
336
335
createPlugin ( plugins ) {
337
336
const webpackPlugins = [ ] ;
338
- const modules = this . webpackConfig . resolveLoader && this . webpackConfig . resolveLoader . modules ;
339
337
Object . keys ( plugins ) . forEach ( name => {
340
338
const configInfo = plugins [ name ] ;
341
339
if ( this . isUse ( configInfo ) ) {
@@ -351,7 +349,7 @@ class WebpackBaseBuilder extends Config {
351
349
let Clazz = configInfo . name ;
352
350
if ( this . utils . isString ( configInfo . name ) ) {
353
351
pluginName = configInfo . name ;
354
- Clazz = this . utils . requireModule ( configInfo . name , modules ) ;
352
+ Clazz = this . utils . requireModule ( configInfo . name , this . modules ) ;
355
353
} else if ( this . utils . isFunction ( configInfo . name ) ) {
356
354
pluginName = configInfo . name . name ;
357
355
}
@@ -377,7 +375,6 @@ class WebpackBaseBuilder extends Config {
377
375
}
378
376
379
377
installPlugin ( plugins ) {
380
- const modules = this . webpackConfig . resolveLoader && this . webpackConfig . resolveLoader . modules ;
381
378
const dependencies = this . dependencies ;
382
379
const enablePlugins = { } ;
383
380
Object . keys ( plugins ) . forEach ( name => {
@@ -386,7 +383,7 @@ class WebpackBaseBuilder extends Config {
386
383
enablePlugins [ name ] = pluginInfo ;
387
384
}
388
385
} ) ;
389
- return this . utils . installPlugin ( enablePlugins , dependencies , modules , this . config . install ) ;
386
+ return this . utils . installPlugin ( enablePlugins , dependencies , this . modules , this . config . install ) ;
390
387
}
391
388
392
389
adapterPlugin ( plugins ) {
@@ -449,16 +446,14 @@ class WebpackBaseBuilder extends Config {
449
446
450
447
combineWebpackConfig ( config ) {
451
448
this . t3 = Date . now ( ) ;
452
- const outerWebpackConfig = this . analysisWebpackConfig ( config ) ;
453
- const configWebpackConfig = this . mergeWebpackConfig ( this . webpackConfig , outerWebpackConfig ) ;
454
449
const buildWebpackConfig = {
455
450
output : this . createOutput ( config ) ,
456
451
module : {
457
452
rules : this . createWebpackLoader ( config )
458
453
} ,
459
454
plugins : this . createWebpackPlugin ( config )
460
455
} ;
461
- const webpackConfig = this . mergeWebpackConfig ( configWebpackConfig , buildWebpackConfig ) ;
456
+ const webpackConfig = this . mergeWebpackConfig ( this . nativeWebpackConfig , buildWebpackConfig ) ;
462
457
this . t4 = Date . now ( ) ;
463
458
this . logger . cost ( ) ;
464
459
return webpackConfig ;
0 commit comments