How can keep css comments after codegen?
Hello friends, in rust I can not be able to keep comments for a css file or content
for example as you see I return the comments in lexer
Some(&comments)
, but it deletes the comments
my css codegen:
Thank you in advance
---
Example:
#### Returns
4 Replies
🥲 🥲 No one has experience with it?
Have you tried it on SWC playground (if that supports css), or in the cli, and see if it works there? If it does, you should be able to see how it does it in the Rust code
Not many people are using the Rust API for codegen it seems, so best to look at the Rust code it uses internally to see how it does it
Hi dear @Levi yes, i did. But the playground just supports js not css. I tried to find inside code but I was not successful 😔 unfortunately
did you try the cli? to see if it's possible to keep comments in css
i dont know anything about the css implementation, maybe it's not possible
because you would need to pass comments into the code generator somewhere, i think