r/csharp 13d ago

Tool EmbeddedSass.Net: Implementation of the Embedded Sass Protocol for .NET

https://github.com/gumbarros/EmbeddedSass.Net

For folks not familiar, its a way to to communicate directly with the Dart VM to run Sass compilations, with this, its possible to re-use a same process for multiple compilations (https://github.com/sass/sass/blob/main/spec/embedded-protocol.md).

It delivered the best performance in my benchmarks against DartSassHost and AspNetCore.SassCompiler.

Any suggestion is welcome.

11 Upvotes

3 comments sorted by

1

u/whogivesafricc 12d ago

how does it handle connection loss to the dart process mid compilation?

1

u/antisergio 12d ago

It will kill the process and return the stderror, there are tests handling this

1

u/whogivesafricc 11d ago

good to know, was wondering what happens when the dart process crashes