grass icon indicating copy to clipboard operation
grass copied to clipboard

Working WASM version for Browsers/Deno

Open hironichu opened this issue 2 years ago • 0 comments

Hello,

Today as I was looking for a way to compile Sass in my project, I was annoyed to not being able to use any npm module with Deno because of some breaking changes, so I decided to use Grass and compile it into wasm to use the WebAssembly module, turns out after many tries it worked,

I had to do some edit to the lib.rs file in order to compile it without error, but I am sure it's not breaking changes.

I just learned Rust only today, so my code might be just garbage! But if it can help, I just wanted to share this.

Here's a link to the Deno module https://github.com/hironichu/denosass (The updated Grass rust source code is not in there yet)

Edit : This module also runs in browsers, should work in nodejs as well but have not tried.

hironichu avatar Nov 08 '21 22:11 hironichu