Problem with build output when using Vite in lib mode with PigmentCSS to produce re-usable components. #324
Labels
Library
Issues important for creating libraries that use Pigment CSS
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
vite
Milestone
Steps to reproduce
I have a Vite project setup to create lib or module for consumption my Nextjs 14 project. I have one RSC component in my Vite project. Here is source:
Everything builds fine. Except that my Sample component ouput ends up with this import for index.pigment.css.
Any suggestions on how I can get rid of this import statement for this css? Or why is this happening?
Here is my Vite config:
Thank you. I thought I following the instructions but maybe I missed something?
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
Search keywords: Vite lib mode reusable
The text was updated successfully, but these errors were encountered: