Describe the bug
There is an error in the console saying the __dirname variable is not defined. The code that uses __dirname variable is included both in development and production build and only when the Tailwind config is wrapped with withTV transformer.
To reproduce
Steps to reproduce the behavior:
Wrap Tailwind config with withTV transformer
Start the application and open browser console
See error
Expected behavior
The code is not included into client bundle.
Describe the bug There is an error in the console saying the
__dirname
variable is not defined. The code that uses__dirname
variable is included both in development and production build and only when the Tailwind config is wrapped withwithTV
transformer.To reproduce Steps to reproduce the behavior:
withTV
transformerExpected behavior The code is not included into client bundle.
Screenshots
Desktop
Additional context NextJS 14.2.14