Unverified Commit 3c06a506 authored by Ethan Arrowood's avatar Ethan Arrowood Committed by GitHub

Add proper deprecation/rename warnings for server bundling option (#65575)

Follow up to https://github.com/vercel/next.js/pull/65421

This pr re-adds the old experimental options to the type definition and
adds proper warnings in the config resolver.
parent 2257133e
......@@ -446,6 +446,16 @@ export interface ExperimentalConfig {
* Allow NODE_ENV=development even for `next build`.
*/
allowDevelopmentBuild?: true
/**
* @deprecated use `config.bundlePagesRouterDependencies` instead
*
*/
bundlePagesExternals?: boolean
/**
* @deprecated use `config.serverExternalPackages` instead
*
*/
serverComponentsExternalPackages?: string[]
}
export type ExportPathMap = {
......
......@@ -465,6 +465,20 @@ function assignDefaults(
}
}
warnOptionHasBeenMovedOutOfExperimental(
result,
'bundlePagesExternals',
'bundlePagesRouterDependencies',
configFileName,
silent
)
warnOptionHasBeenMovedOutOfExperimental(
result,
'serverComponentsExternalPackages',
'serverExternalPackages',
configFileName,
silent
)
warnOptionHasBeenMovedOutOfExperimental(
result,
'relay',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment