Provide a way to share resources across multiple compilations · Issue #3296 · sass/sass (original) (raw)
It seems currently sass-embedded starts one process for each compile request and stops it after compilation.
When using Vue components with sass, Vite requests one compile request for one file. This makes many compile requests and it slows down by process creation overhead.
esbuild reuses process to avoid this situation. I suppose the performance can be improved in the same way.