Closed zwgnr closed 1 year ago
I believe this is something that's occurring because extracted_*.css
files don't actually exist in the file system. They are virtual and are created and resolved by macaron's bundler plugins, but typescript is unable to resolve them.
This isn't something that can be fixed since we can't make ts resolve the virtual files, so removing vite-dts and running tsc as a different process is probably the only way to make it work
I am currently in the processes of porting over a design system from Vanilla Extract to Macaron.
I was compiling with Vite in Lib mode using vite-dts in Vanilla Extract and everything was working fine. When using Macaron, the builds are failing.
Here's the vite.config
FWIW, I was able to get builds working by removing vite-dts from the vite.config, building, and then running a separate build step with tsc and the following flags "tsc --emitDeclarationOnly --declaration --declarationDir dist/types".