Skip to content
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

dartsass: Look also in ./node_modules folder for the binary #11137

Closed
XhmikosR opened this issue Jun 19, 2023 · 10 comments
Closed

dartsass: Look also in ./node_modules folder for the binary #11137

XhmikosR opened this issue Jun 19, 2023 · 10 comments

Comments

@XhmikosR
Copy link
Contributor

Would it make sense to look into ./node_modules for sass now that the regular Dart Sass binary is supported? Similar to postcss?

@XhmikosR XhmikosR changed the title dartsass: Look also in ./node_modules Would it make sense to look into ./node_modules dartsass: Look also in ./node_modules Jun 19, 2023
@XhmikosR XhmikosR changed the title dartsass: Look also in ./node_modules dartsass: Look also in ./node_modules folder for the binary Jun 19, 2023
@jmooring
Copy link
Member

$ npm install sass
$ ./node_modules/.bin/sass --embedded --version

sass --embedded is unavailable in pure JS mode.

@XhmikosR
Copy link
Contributor Author

v104.0 release notes mention:

The main new thing in this release is that we now support both major versions of the Dart Sass Embedded protocol, which means that you now can use the regular Dart Sass binary.

Am I missing something?

@bep
Copy link
Member

bep commented Jun 19, 2023

Am I missing something?

Maybe. The binary in node_modules isn't ... regular -- it's tailored to work with Node JS etc., I guess.

@bep bep added the Proposal label Jun 19, 2023
@jmooring
Copy link
Member

https://github.com/sass/dart-sass/releases/tag/1.63.0

The Dart Sass embedded compiler is now included as part of the primary Dart Sass distribution, rather than a separate executable. To use the embedded compiler, just run sass --embedded from any Sass executable (other than the pure JS executable).

@bep
Copy link
Member

bep commented Jun 19, 2023

... but does that mean that if we dropped --embedded when running the JS executable ... it would work?

I'm sure glad they made this upgrade simple to understand.

@jmooring
Copy link
Member

I've requested a documentation change:
sass/dart-sass#2022

@bep
Copy link
Member

bep commented Jun 20, 2023

@jmooring would it not be better to request them to make --embedded a no-op flag on the JS executable (if it's the same as running the other binary with that flag set)?

@bep
Copy link
Member

bep commented Jun 20, 2023

OK, it's compiled to JS, which I guess is not something that we could/would want to use.

~/d/m/n/.bin ❯❯❯ ./sass --version                                                                                                       ✘ 1
1.63.4 compiled with dart2js 3.0.4

@jmooring
Copy link
Member

This is covered at a higher level in #8299.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants