Skip to content

Commit

Permalink
Update supported config options for Turbopack (#55556)
Browse files Browse the repository at this point in the history
Closes WEB-1600

Co-authored-by: JJ Kasper <[email protected]>
  • Loading branch information
padmaia and ijjk authored Sep 19, 2023
1 parent 8881c41 commit bad5365
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/next/src/lib/turbopack-warning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,31 @@ const supportedTurbopackNextConfigOptions = [
'trailingSlash',
'i18n.locales',
'i18n.defaultLocale',
'sassOptions.includePaths',
'sassOptions',
'configOrigin',
'httpAgentOptions',
'useFileSystemPublicRoutes',
'generateEtags',
'assetPrefix',
'experimental.serverComponentsExternalPackages',
'experimental.turbo',
'experimental.mdxRs',
'experimental.forceSwcTransforms',
'experimental.serverActionsBodySizeLimit',
'experimental.memoryBasedWorkersCount',
// options below are not really supported, but ignored
'webpack',
'devIndicators',
'onDemandEntries',
'excludeDefaultMomentLocales',
'experimental.cpus',
'experimental.sharedPool',
'experimental.proxyTimeout',
'experimental.isrFlushToDisk',
'experimental.workerThreads',
'experimental.caseSensitiveRoutes',
'experimental.optimizePackageImports',
'experimental.optimizeServerReact',
]

// The following will need to be supported by `next build --turbo`
Expand All @@ -54,6 +64,8 @@ const prodSpecificTurboNextConfigOptions = [
'optimizeFonts',
'poweredByHeader',
'staticPageGenerationTimeout',
'reactProductionProfiling',
'cleanDistDir',
'compiler.reactRemoveProperties',
'compiler.removeConsole',
'experimental.turbotrace',
Expand All @@ -62,6 +74,12 @@ const prodSpecificTurboNextConfigOptions = [
'experimental.outputFileTracingIgnores',
'experiemental.outputFileTracingIncludes',
'experimental.gzipSize',
'experimental.useDeploymentId',
'experimental.useDeploymentIdServerActions',
'experimental.deploymentId',
'experimental.serverMinification',
'experimental.serverSourceMaps',
'experimenta.trustHostHeader',
]

// check for babelrc, swc plugins
Expand Down

0 comments on commit bad5365

Please sign in to comment.