Embedded Sass is Live
Posted 1 February 2022 by Natalie Weizenbaum
After several years of planning and development, I’m excited to finally announce the stable release of Embedded Dart Sass along with its first official wrapper, the
sass-embedded package available now on npm!
Embedded Sass is an ongoing effort to make a highly-performant Sass library available to as many different languages as possible, starting with Node.js. Although Node.js already has access to the pure-JS
sass-embedded to be a major boon to developers for whom compilation speed is a concern, particularly the remaining users of
node-sass for whom performance has been a major reason to avoid Dart Sass.
sass-embedded package fully supports the new JS API as well as the legacy API other than a few cosmetic options. You can use it as a drop-in replacement for the
sass package, and it should work with all the same build plugins and libraries. Note that
sass-embedded is a bit faster in asynchronous mode than it is in synchronous mode (whereas the
sass package was faster in synchronous mode). For substantial Sass files, running
sass-embedded in either mode will generally be much faster than
In order to limit the confusion about which version of which package supports which feature, the
sass-embedded package will always have the same version as the
sass package. When new features are added to the JS API, they’ll be supported at the same time in both packages, and when new language features are added to Sass they’ll always be included in a new
sass-embedded release straight away.
How it Works permalinkHow it Works
Embedded Sass is composed of three parts:
The protocol, a protocol-buffer-based specification of how the host and the compiler communicate with one another. This communication happens over the standard input and output streams of the compiler executable, which is invoked by the host to perform each compilation.
Other Languages permalinkOther Languages