Skip to content

Commit

Permalink
Fix emotion labelFormat and sourcemap options (#39389)
Browse files Browse the repository at this point in the history
fixes #39386
  • Loading branch information
Brooooooklyn committed Aug 8, 2022
1 parent 8ddcc6a commit 4da09da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/build/swc/options.js
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 4da09da

Please sign in to comment.