diff --git a/packages/next/build/swc/options.js b/packages/next/build/swc/options.js index 218692a9089a..4516e065c42c 100644 --- a/packages/next/build/swc/options.js +++ b/packages/next/build/swc/options.js @@ -152,9 +152,9 @@ function getEmotionOptions(nextConfig, development) { return { enabled: true, autoLabel, - labelFormat: nextConfig?.experimental?.emotion?.labelFormat, + labelFormat: nextConfig?.compiler?.emotion?.labelFormat, sourcemap: development - ? nextConfig?.experimental?.emotion?.sourceMap ?? true + ? nextConfig?.compiler?.emotion?.sourceMap ?? true : false, } }