File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,6 @@ export interface TurbopackOptions {
149
149
*/
150
150
memoryLimit ?: number
151
151
152
- /**
153
- * Enable persistent caching for the turbopack dev server and build.
154
- */
155
- unstablePersistentCaching ?: boolean
156
-
157
152
/**
158
153
* Enable tree shaking for the turbopack dev server and build.
159
154
*/
@@ -386,7 +381,12 @@ export interface ExperimentalConfig {
386
381
/**
387
382
* @deprecated Use `config.turbopack` instead.
388
383
*/
389
- turbo ?: TurbopackOptions
384
+ turbo ?: DeprecatedExperimentalTurboOptions
385
+
386
+ /**
387
+ * Enable persistent caching for the turbopack dev server and build.
388
+ */
389
+ turbopackPersistentCaching ?: boolean
390
390
391
391
/**
392
392
* For use with `@next/mdx`. Compile MDX files using the new Rust compiler.
Original file line number Diff line number Diff line change @@ -251,9 +251,9 @@ function assignDefaults(
251
251
throw new CanaryOnlyError ( { feature : 'experimental.ppr' } )
252
252
} else if ( result . experimental ?. dynamicIO ) {
253
253
throw new CanaryOnlyError ( { feature : 'experimental.dynamicIO' } )
254
- } else if ( result . experimental ?. turbo ?. unstablePersistentCaching ) {
254
+ } else if ( result . experimental ?. turbopackPersistentCaching ) {
255
255
throw new CanaryOnlyError ( {
256
- feature : 'experimental.turbo.unstablePersistentCaching ' ,
256
+ feature : 'experimental.turbopackPersistentCaching ' ,
257
257
} )
258
258
} else if ( result . experimental ?. nodeMiddleware ) {
259
259
throw new CanaryOnlyError ( { feature : 'experimental.nodeMiddleware' } )
@@ -1280,6 +1280,11 @@ export default async function loadConfig(
1280
1280
userConfig . experimental . turbo . rules = rules
1281
1281
}
1282
1282
1283
+ if ( userConfig . experimental ?. turbo ?. unstablePersistentCaching != null ) {
1284
+ userConfig . experimental . turbopackPersistentCaching =
1285
+ userConfig . experimental . turbo . unstablePersistentCaching
1286
+ }
1287
+
1283
1288
if ( userConfig . experimental ?. turbo ) {
1284
1289
Log . warnOnce (
1285
1290
'The next config property `experimental.turbo` is deprecated as Turbopack has been stabilized. Please move this configuration to `config.turbopack`.'
You can’t perform that action at this time.
0 commit comments