Unverified Commit 4da09da1 authored by LongYinan's avatar LongYinan Committed by GitHub

Fix emotion labelFormat and sourcemap options (#39389)

fixes https://github.com/vercel/next.js/issues/39386
parent 8ddcc6ae
...@@ -152,9 +152,9 @@ function getEmotionOptions(nextConfig, development) { ...@@ -152,9 +152,9 @@ function getEmotionOptions(nextConfig, development) {
return { return {
enabled: true, enabled: true,
autoLabel, autoLabel,
labelFormat: nextConfig?.experimental?.emotion?.labelFormat, labelFormat: nextConfig?.compiler?.emotion?.labelFormat,
sourcemap: development sourcemap: development
? nextConfig?.experimental?.emotion?.sourceMap ?? true ? nextConfig?.compiler?.emotion?.sourceMap ?? true
: false, : false,
} }
} }
......
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