vite_plugin_fuz_css_build.ts

The build half of vite_plugin_fuz_css: the passes that turn the virtual module's placeholder into the generated CSS once every module has been transformed.

renderChunk renders the CSS and restates the placeholder with a hash of it, so the stylesheet Vite emits - and each chunk whose name depends on that stylesheet's - gets a filename that changes when the generated CSS does. generateBundle then splices the CSS in at the placeholder's position (see css_placeholder_splice.ts), in whichever of two passes the stylesheets exist for.

view source

Depends on
#

Imported by
#