@@ -25,10 +25,23 @@ exports[`Should compose create Rsbuild config correctly > Enable experiment.adva
2525 force: false
2626 }
2727 },
28+ cache: {
29+ type: ' persistent' ,
30+ version: ' esm-development' ,
31+ storage: {
32+ type: ' filesystem' ,
33+ directory: ' <WORKSPACE>/node_modules/.cache/rspack'
34+ },
35+ buildDependencies: [
36+ ' <WORKSPACE>/package.json' ,
37+ ' <WORKSPACE>/tsconfig.json'
38+ ]
39+ },
2840 asyncWebAssembly: true ,
2941 outputModule: true
3042 },
3143 devtool : false ,
44+ cache : true ,
3245 externals : [
3346 function () { /* omitted long function */ },
3447 / ^ @rsbuild \\/ core($ | \\ /| \\\\ )/ ,
@@ -1064,10 +1077,23 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
10641077 force: false
10651078 }
10661079 },
1080+ cache: {
1081+ type: ' persistent' ,
1082+ version: ' esm-development' ,
1083+ storage: {
1084+ type: ' filesystem' ,
1085+ directory: ' <WORKSPACE>/node_modules/.cache/rspack'
1086+ },
1087+ buildDependencies: [
1088+ ' <WORKSPACE>/package.json' ,
1089+ ' <WORKSPACE>/tsconfig.json'
1090+ ]
1091+ },
10671092 asyncWebAssembly: true ,
10681093 outputModule: true
10691094 },
10701095 devtool : false ,
1096+ cache : true ,
10711097 externals : [
10721098 function () { /* omitted long function */ },
10731099 / ^ @rsbuild \\/ core($ | \\ /| \\\\ )/ ,
@@ -1800,9 +1826,22 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
18001826 force: false
18011827 }
18021828 },
1829+ cache: {
1830+ type: ' persistent' ,
1831+ version: ' cjs-development' ,
1832+ storage: {
1833+ type: ' filesystem' ,
1834+ directory: ' <WORKSPACE>/node_modules/.cache/rspack'
1835+ },
1836+ buildDependencies: [
1837+ ' <WORKSPACE>/package.json' ,
1838+ ' <WORKSPACE>/tsconfig.json'
1839+ ]
1840+ },
18031841 asyncWebAssembly: true
18041842 },
18051843 devtool : false ,
1844+ cache : true ,
18061845 externals : [
18071846 / ^ @rsbuild \\/ core($ | \\ /| \\\\ )/ ,
18081847 / ^ rsbuild-plugin-dts($ | \\ /| \\\\ )/ ,
@@ -2529,9 +2568,22 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
25292568 force: false
25302569 }
25312570 },
2571+ cache: {
2572+ type: ' persistent' ,
2573+ version: ' umd-development' ,
2574+ storage: {
2575+ type: ' filesystem' ,
2576+ directory: ' <WORKSPACE>/node_modules/.cache/rspack'
2577+ },
2578+ buildDependencies: [
2579+ ' <WORKSPACE>/package.json' ,
2580+ ' <WORKSPACE>/tsconfig.json'
2581+ ]
2582+ },
25322583 asyncWebAssembly: true
25332584 },
25342585 devtool : false ,
2586+ cache : true ,
25352587 externals : [
25362588 ' assert' ,
25372589 ' assert/strict' ,
@@ -3163,9 +3215,22 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
31633215 force: false
31643216 }
31653217 },
3218+ cache: {
3219+ type: ' persistent' ,
3220+ version: ' iife-development' ,
3221+ storage: {
3222+ type: ' filesystem' ,
3223+ directory: ' <WORKSPACE>/node_modules/.cache/rspack'
3224+ },
3225+ buildDependencies: [
3226+ ' <WORKSPACE>/package.json' ,
3227+ ' <WORKSPACE>/tsconfig.json'
3228+ ]
3229+ },
31663230 asyncWebAssembly: true
31673231 },
31683232 devtool : false ,
3233+ cache : true ,
31693234 externals : [
31703235 ' assert' ,
31713236 ' assert/strict' ,
@@ -3798,9 +3863,22 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
37983863 force: false
37993864 }
38003865 },
3866+ cache: {
3867+ type: ' persistent' ,
3868+ version: ' mf-development' ,
3869+ storage: {
3870+ type: ' filesystem' ,
3871+ directory: ' <WORKSPACE>/node_modules/.cache/rspack'
3872+ },
3873+ buildDependencies: [
3874+ ' <WORKSPACE>/package.json' ,
3875+ ' <WORKSPACE>/tsconfig.json'
3876+ ]
3877+ },
38013878 asyncWebAssembly: true
38023879 },
38033880 devtool : false ,
3881+ cache : true ,
38043882 output : {
38053883 devtoolModuleFilenameTemplate: ' [absolute-resource-path]' ,
38063884 path: ' <WORKSPACE>/dist' ,
@@ -4465,6 +4543,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
44654543 " target" : " node" ,
44664544 },
44674545 " performance" : {
4546+ " buildCache" : true ,
44684547 " chunkSplit" : {
44694548 " strategy" : " custom" ,
44704549 },
@@ -4757,6 +4836,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
47574836 " target" : " node" ,
47584837 },
47594838 " performance" : {
4839+ " buildCache" : true ,
47604840 " chunkSplit" : {
47614841 " strategy" : " custom" ,
47624842 },
@@ -5036,6 +5116,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
50365116 " target" : " node" ,
50375117 },
50385118 " performance" : {
5119+ " buildCache" : true ,
50395120 " chunkSplit" : {
50405121 " strategy" : " custom" ,
50415122 },
@@ -5287,6 +5368,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
52875368 " target" : " node" ,
52885369 },
52895370 " performance" : {
5371+ " buildCache" : true ,
52905372 " chunkSplit" : {
52915373 " strategy" : " custom" ,
52925374 },
@@ -5485,6 +5567,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
54855567 " target" : " web" ,
54865568 },
54875569 " performance" : {
5570+ " buildCache" : true ,
54885571 " chunkSplit" : {
54895572 " strategy" : " custom" ,
54905573 },
0 commit comments