From 4da09da1a2fa0c7b2d9c558b8072dfdd00a4b369 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 8 Aug 2022 10:52:44 +0800 Subject: [PATCH] Fix emotion labelFormat and sourcemap options (#39389) 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, } }