Skip to content

Commit

Permalink
[nextjs] Fix react import check bug introduced in #228
Browse files Browse the repository at this point in the history
  • Loading branch information
Brijesh Bittu committed Sep 13, 2024
1 parent 8e49a08 commit a8a8147
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pigment-css-nextjs-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export function withPigment(nextConfig: NextConfig, pigmentConfig?: PigmentOptio
// has a lot of RSC specific logic which is not actually needed.
if (
what === 'react' ||
what.startsWith('react/') ||
what.startsWith('react-dom/') ||
what.startsWith('@babel/') ||
what.startsWith('next/')
Expand Down

0 comments on commit a8a8147

Please sign in to comment.