@@ -52,7 +52,6 @@ export class Kaba
52
52
private javaScriptDependenciesFileName : string = "_dependencies" ;
53
53
private hashFileNames : boolean = true ;
54
54
private buildModern : boolean = true ;
55
- private hasPerEntryCompilation : boolean = false ;
56
55
private nodeSettings : webpack . Node | false = false ;
57
56
58
57
@@ -227,16 +226,6 @@ export class Kaba
227
226
}
228
227
229
228
230
- /**
231
- * Disables the per entry file compilation.
232
- */
233
- public enablePerEntryCompilation ( ) : this
234
- {
235
- this . hasPerEntryCompilation = true ;
236
- return this ;
237
- }
238
-
239
-
240
229
/**
241
230
* Setting for polyfilling core node packages
242
231
*/
@@ -521,36 +510,6 @@ export class Kaba
521
510
] ,
522
511
} ;
523
512
524
- if ( ! this . hasPerEntryCompilation ) {
525
- let config = Object . assign ( { } , configTemplate , {
526
- entry : {
527
- entry : entries ,
528
- } ,
529
- } ) as Partial < webpack . Configuration > ;
530
-
531
- if ( ! isModule && undefined !== config . module )
532
- {
533
- config . module . rules . push ( {
534
- // ESLint
535
- test : / \. m ? j s x ? $ / ,
536
- // only lint files that are in the project dir & exclude tests, vendor and node_modules
537
- include : ( path ) => path . startsWith ( this . cwd ) && ! / n o d e _ m o d u l e s | t e s t s | v e n d o r / . test ( path ) ,
538
- loader : "eslint-loader" ,
539
- options : {
540
- cache : true ,
541
- configFile : path . join ( this . libRoot , "configs/.eslintrc.yml" ) ,
542
- fix : cliConfig . fix ,
543
- parser : "babel-eslint" ,
544
- quiet : ! cliConfig . lint ,
545
- // always only emit a warning, so to actually never fail the webpack build
546
- emitWarning : true ,
547
- } ,
548
- } )
549
- }
550
-
551
- return [ config ]
552
- }
553
-
554
513
return Object . keys ( entries ) . map ( entryFile =>
555
514
{
556
515
let config = Object . assign ( { } , configTemplate , {
0 commit comments