Fix emotion labelFormat and sourcemap options (#39389)
fixes https://github.com/vercel/next.js/issues/39386
This commit is contained in:
parent
8ddcc6aedb
commit
4da09da1a2
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue