File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -2351,15 +2351,31 @@ export default async function getBaseWebpackConfig(
23512351 webpack5Config . cache = cache
23522352
23532353 if ( isRspack ) {
2354+ let version : string = `${ __dirname } |${ process . env . __NEXT_VERSION } |${ configVars } `
2355+ const buildDependencies : string [ ] = cache . buildDependencies . config ?? [ ] ;
2356+
2357+ if ( babelConfigFile ) {
2358+ buildDependencies . push ( babelConfigFile ) ;
2359+ version += `|${ babelConfigFile } ` ;
2360+ } else {
2361+ version += '|' ;
2362+ }
2363+ if ( jsConfigPath ) {
2364+ buildDependencies . push ( jsConfigPath ) ;
2365+ version += `|${ jsConfigPath } ` ;
2366+ } else {
2367+ version += '|' ;
2368+ }
2369+
23542370 // @ts -ignore
23552371 webpack5Config . experiments . cache = {
23562372 type : 'persistent' ,
2357- buildDependencies : cache . buildDependencies . config ,
2373+ buildDependencies,
23582374 storage : {
23592375 type : 'filesystem' ,
23602376 directory : cache . cacheDirectory ,
23612377 } ,
2362- version : ` ${ __dirname } | ${ process . env . __NEXT_VERSION } | ${ configVars } ` ,
2378+ version,
23632379 }
23642380 }
23652381
You can’t perform that action at this time.
0 commit comments