diff --git a/packages/pigment-css-nextjs-plugin/src/index.ts b/packages/pigment-css-nextjs-plugin/src/index.ts index 04d9576f..2b343fe8 100644 --- a/packages/pigment-css-nextjs-plugin/src/index.ts +++ b/packages/pigment-css-nextjs-plugin/src/index.ts @@ -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/')