From b32cb0d213a6817410843a67a93a7829a8ac5e16 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 8 Aug 2022 10:14:45 +0800 Subject: [PATCH] Fix emotion labelFormat and sourcemap options fixes https://github.com/vercel/next.js/issues/39386 --- packages/next/build/swc/options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, } }