File tree 3 files changed +2
-35
lines changed
3 files changed +2
-35
lines changed Original file line number Diff line number Diff line change 27
27
* (improvement) Improved ESLint linting: now only files in the project dir are linted. This ensures that symlinked dev packages are
28
28
not linted. (` /node_modules/ ` etc are still excluded, of course.)
29
29
* (feature) Add option to polyfill core node packages in webpack.
30
+ * (bc) Remove ` disableChunkSplitting() ` , chunk splitting is now always disabled. Use code splitting instead.
30
31
31
32
32
33
8.1.0
Original file line number Diff line number Diff line change 4
4
* Internal: The project was ported to TypeScript.
5
5
* Always build a legacy and a modern JS build.
6
6
* Removed the ability to use the project's ` tsconfig.json ` .
7
+ * Removed ` disableChunkSplitting() ` , chunk splitting is now always disabled. Use code splitting instead and remove the call to this method.
7
8
8
9
9
10
7.x to 8.0
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ export class Kaba
50
50
private moduleConcatenationEnabled : boolean = false ;
51
51
private plugins : webpack . Plugin [ ] = [ ] ;
52
52
private javaScriptDependenciesFileName : string = "_dependencies" ;
53
- private splitChunks : boolean = true ;
54
53
private hashFileNames : boolean = true ;
55
54
private buildModern : boolean = true ;
56
55
private nodeSettings : webpack . Node | false = false ;
@@ -207,16 +206,6 @@ export class Kaba
207
206
}
208
207
209
208
210
- /**
211
- * Disables chunk splitting
212
- */
213
- public disableChunkSplitting ( ) : this
214
- {
215
- this . splitChunks = false ;
216
- return this ;
217
- }
218
-
219
-
220
209
/**
221
210
* Disables chunk hashes in file names
222
211
*/
@@ -388,30 +377,6 @@ export class Kaba
388
377
node : this . nodeSettings ,
389
378
} ;
390
379
391
- if ( this . splitChunks )
392
- {
393
- ( config . optimization as any ) . splitChunks = {
394
- chunks : "all" ,
395
- minChunks : 1 ,
396
- maxAsyncRequests : 5 ,
397
- maxInitialRequests : 3 ,
398
- name : true ,
399
- cacheGroups : {
400
- default : {
401
- minChunks : 2 ,
402
- priority : - 20 ,
403
- reuseExistingChunk : true ,
404
- } ,
405
- vendors : {
406
- test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] / ,
407
- priority : - 10 ,
408
- } ,
409
- } ,
410
- } ;
411
-
412
- ( config . optimization as any ) . runtimeChunk = "single" ;
413
- }
414
-
415
380
if ( ! cliConfig . debug )
416
381
{
417
382
( config . optimization as any ) . minimizer . push ( new TerserPlugin ( {
You can’t perform that action at this time.
0 commit comments