File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3739,7 +3739,7 @@ function warnAboutTurbopackBuilds(config?: NextConfigComplete) {
3739
3739
warningStr +=
3740
3740
'\n\n- It is expected that your bundle size might be different from `next build` with webpack. This will be improved as we work towards stability.'
3741
3741
3742
- if ( ! config ?. experimental . turbo ?. unstablePersistentCaching ) {
3742
+ if ( ! config ?. experimental . turbopackPersistentCaching ) {
3743
3743
warningStr +=
3744
3744
'\n- This build is without disk caching; subsequent builds will become faster when disk caching becomes available.'
3745
3745
}
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' } )
You can’t perform that action at this time.
0 commit comments