-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Let developers explicitly specify Dart Sass implementation through USE_DART_SASS environment variable #9628
Comments
As of (This is one of many packages making changes now that Could this issue be resolved by upgrading |
@BenJenkinson yes that's also a solution. I had just assumed CRA may not upgrade |
Is it possible to update the documentation to reflect the usage of Dart Sass now that node-sass is deprecated? |
The documentation has been updated in PR #10779, but it doesn't look like those changes have been published to the website yet. |
@christopher-francisco Now that |
Is your proposal related to a problem?
Currently react-scripts uses
[email protected]
which, according to the README will:sass
is installednode-sass
is installednode-sass
if both are installedWe have our projects on a monorepo setup, and we have both dependencies through projects. We use
pnpm
to manage dependencies, and the end result is that since sass-loader findsnode-sass
, it uses it. There's no way to force Dart SassDescribe the solution you'd like
Have an environment variable
USE_DART_SASS=true
to let consumers specify the want to use Dart SassDescribe alternatives you've considered
I've considered remove node-sass from all of the projects, but that's not only too much work, but it also makes my project health dependent on making sure nobody in the future ever adds a
node-sass
installation, or my app will break.I've also considered forking and using custom react-scripts, however keeping it in sync with the public one and such seems like a lot of work for this one single option.
I've pushed #9629 to show you how it'd look like.
The text was updated successfully, but these errors were encountered: