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

Migrate from Node Sass to Dart Sass #535

Closed
tmarkley opened this issue Jun 23, 2021 · 0 comments · Fixed by #2054
Closed

Migrate from Node Sass to Dart Sass #535

tmarkley opened this issue Jun 23, 2021 · 0 comments · Fixed by #2054
Labels
build Build related additions or modifications dependencies Pull requests that update a dependency file technical debt If not paid, jeapardizes long-term success and maintainability of the repository.

Comments

@tmarkley
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Node Sass and LibSass are deprecated: https://sass-lang.com/blog/libsass-is-deprecated

Describe the solution you'd like

Migrate to Dart Sass: https://sass-lang.com/dart-sass

Describe alternatives you've considered

A temporary version bump was done in #501 to use a newer version of LibSass that addresses current security vulnerabilities. An upgrade to Dart Sass was attempted but resulted in errors since EUI does not follow the Sass spec. For example: SassError: Top-level selectors may not contain the parent selector "&".

Additional context

N/A

@tmarkley tmarkley added build Build related additions or modifications dependencies Pull requests that update a dependency file labels Jun 23, 2021
@tmarkley tmarkley added the technical debt If not paid, jeapardizes long-term success and maintainability of the repository. label May 25, 2022
@kavilla kavilla linked a pull request Aug 2, 2022 that will close this issue
7 tasks
kavilla pushed a commit that referenced this issue Aug 12, 2022
https://github.com/opensearch-project/OpenSearch-Dashboards/security/dependabot/62

This PR fixes the Regular expression denial of service in scss-tokenizer, use dart-sass instead of node-sass.
The node-sass are deprecated, the detail here.
https://www.npmjs.com/package/node-sass

The suggested solution (#535) is that use dart-sass instead of node-sass

* use dart-sass instead of node-sass
* Update basic_optimization.test snapshot
* use compressed as outputsytle and fixes yarn.lock
* minimize yarn.lock changes

Issues Resolved:
#1842
#535

Signed-off-by: Tao liu <liutaoaz@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build related additions or modifications dependencies Pull requests that update a dependency file technical debt If not paid, jeapardizes long-term success and maintainability of the repository.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant