-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move to dart-sass instead of node-sass #1509
Comments
Dart sass is slower and would require the dart runtime right? |
Citing Dart Sass performance
So yeah it's slower, but it's pure JS. I also saw mentions of Also the compiled Dart Sass standalone (which doesn't require the Dart VM) seems to be on par to libsass and may be faster for some test cases PS: It may be a good idea to ask someone on the Sass team to clarify this stuff |
Pure JS isn’t necessarily better, the major issues we currently have with sass are unrelated with it being in C++. Sent with GitHawk |
@DeMoorJasper You should at least let people be able to choose There are also a myriad of issues with using
// @nex3 |
@sindresorhus I thought we fixed the freezing issue, that’s why I thought this issue was pretty unnecessary, but now that someone has reported it again I’m pretty sure it’s a good idea to support dart-sass, still unfortunate that they don’t have a solid sass-js or something. I’ll probably open up a pr for this later today (or link a plugin) Sent with GitHawk |
🙋 Feature Request
Since late march dart-sass reached the stable release 1.0.0, marking the start of the deprecation of ruby-sass (not libsass though).
Although node-sass is based on libsass and will continue to be updated with the latest patch and fixes, it will take more time for this features to land while dart-sass will receive them immediately and has the benefit of compiling to pure JS without the need of native modules.
Dart-sass is now at version 1.5.1 (as of 8/6/2018) and in nice shape to be used in production. NPM Link
🤔 Expected Behavior
Parcel should be able to detect the
sass
module instead ofnode-sass
, and maybe fallback to it, if needed, though it may be a good idea to drop it altogether and look forward to #1253😯 Current Behavior
Parcel incorrectly detects
sass
and asks fornode-sass
instead, failing to compile.sass/.scss
files💁 Possible Solution
Luckily
sass
is API compatible withnode-sass
so it should be as easy as changing the 2 occurrences ofnode-sass
tosass
at package.json line 90 and SASSAsset.js line 16The text was updated successfully, but these errors were encountered: