File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 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
30
* (bc) Remove ` disableChunkSplitting() ` , chunk splitting is now always disabled. Use code splitting instead.
31
+ * (improvement) Enable ` cache-loader ` , which might speed up the webpack build.
31
32
32
33
33
34
8.1.0
Original file line number Diff line number Diff line change 27
27
"@becklyn/typescript-error-formatter" : " ^1.0.4" ,
28
28
"babel-eslint" : " ^10.0.3" ,
29
29
"babel-loader" : " ^8.0.6" ,
30
+ "cache-loader" : " ^4.1.0" ,
30
31
"clean-webpack-plugin" : " ^3.0.0" ,
31
32
"core-js" : " ^3.3.6" ,
32
33
"duplicate-package-checker-webpack-plugin" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ export class Kaba
454
454
isModule ? "tsconfig.modern.json" : "tsconfig.legacy.json" ,
455
455
) ;
456
456
457
- let config = {
457
+ return {
458
458
// entry
459
459
entry : entries ,
460
460
@@ -474,6 +474,7 @@ export class Kaba
474
474
{
475
475
test : / \. t s x ? $ / ,
476
476
use : [
477
+ 'cache-loader' ,
477
478
babelLoader ,
478
479
{
479
480
loader : "ts-loader" ,
@@ -489,7 +490,7 @@ export class Kaba
489
490
// Babel
490
491
{
491
492
test : / \. m ? j s x ? $ / ,
492
- use : [ babelLoader ] ,
493
+ use : [ 'cache-loader' , babelLoader ] ,
493
494
} ,
494
495
495
496
// content files
@@ -528,8 +529,6 @@ export class Kaba
528
529
} ) ,
529
530
] ,
530
531
} ;
531
-
532
- return config ;
533
532
}
534
533
}
535
534
You can’t perform that action at this time.
0 commit comments