You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying out your plugin for providing SSR CSS developer experience on Vite v6.0.0-beta.5, and have run into several problems, assuming that the plugin is intended to be used by adding it to my Vite config and nothing else.
the source in resolveId never starts with just the virtual module name, it starts with \0 because it's linked in the HTML with /@id/__x00__, I'm not sure what's the intention there
why is it export default instead of just the content of the CSS? I haven't been able to get the injected link to actually produce the collected content, though, even though it manages to collect the CSS successfully…
this plugin should produce the collected CSS during dev, but Vite's <style> tags still get injected, no? doesn't that result in duplicate styles? or is that not considered problematic?
traversing modules also traverses Sass partials for me, so ?direct requests were failing for those because they were missing context, I've modified the traverse function to exit upon hitting a Sass file
I've tried to adapt the plugin to my Environment API setup, but since I don't really understand all of the plugin and that part of Vite deeply enough (despite your helpful comments) I didn't manage to succeed.
I can create a repro if it will help. I was just tired and wanted to write down everything that I can remember.
The text was updated successfully, but these errors were encountered:
I've been trying out your plugin for providing SSR CSS developer experience on Vite v6.0.0-beta.5, and have run into several problems, assuming that the plugin is intended to be used by adding it to my Vite config and nothing else.
source
inresolveId
never starts with just the virtual module name, it starts with\0
because it's linked in the HTML with/@id/__x00__
, I'm not sure what's the intention thereload
hook have this?export default
instead of just the content of the CSS? I haven't been able to get the injected link to actually produce the collected content, though, even though it manages to collect the CSS successfully…<style>
tags still get injected, no? doesn't that result in duplicate styles? or is that not considered problematic??direct
requests were failing for those because they were missing context, I've modified thetraverse
function to exit upon hitting a Sass fileI've tried to adapt the plugin to my Environment API setup, but since I don't really understand all of the plugin and that part of Vite deeply enough (despite your helpful comments) I didn't manage to succeed.
I can create a repro if it will help. I was just tired and wanted to write down everything that I can remember.
The text was updated successfully, but these errors were encountered: