We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cabc286 commit e508d20Copy full SHA for e508d20
packages/next/src/build/webpack-config.ts
@@ -2351,10 +2351,18 @@ export default async function getBaseWebpackConfig(
2351
webpack5Config.cache = cache
2352
2353
if (isRspack) {
2354
+ const buildDependencies: string[] = cache.buildDependencies.config ?? []
2355
+ if (babelConfigFile) {
2356
+ buildDependencies.push(babelConfigFile)
2357
+ }
2358
+ if (jsConfigPath) {
2359
+ buildDependencies.push(jsConfigPath)
2360
2361
+
2362
// @ts-ignore
2363
webpack5Config.experiments.cache = {
2364
type: 'persistent',
- buildDependencies: cache.buildDependencies.config,
2365
+ buildDependencies,
2366
storage: {
2367
type: 'filesystem',
2368
directory: cache.cacheDirectory,
0 commit comments