vite-plugin-linaria icon indicating copy to clipboard operation
vite-plugin-linaria copied to clipboard

Style tag duplication for same styles

Open fyapy opened this issue 4 years ago • 3 comments

Fix style tag update, and fix memory leak

fyapy avatar May 06 '21 21:05 fyapy

Hi @fyapy, I would really like to talk to you about the changes you made.

The original code by @denn1s is too hard for me to comprehend, and alternative solutions such as @linaria/rollup and @SquirrelJimmy/vite-plugin-linaria-css don't work for me because they don't extract Linaria tags from the source files.

I need to make Linaria reliably work with Vite. I need your insight to sort all this mess out once and for all, because you understand the code of this plugin.

You can find my email and my Telegram handle in my bio. Thanks in advance.

textpain avatar Mar 15 '22 16:03 textpain

Hey - any update on where this stands? It has been more than a year since the last update

ShayDavidson avatar Jul 13 '23 18:07 ShayDavidson

I have been unable to fix the issue due to lack of understanding of the underlying vite plugin systems. I'm also unable to replicate the issue in my setup. There is a pull request but it makes it so plugins down the chain, such as postcss, stop working.

I'm open to comments on how to fix it or pull requests that do it.

It is also my understanding that there is an official way to get linaria working using a rollup plugin, which is why I haven't bothered updating the library. If there is interest, I might revive the project.

denn1s avatar Jul 13 '23 19:07 denn1s