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

MPP-3946: Silence deprecration warnings added in sass 1.80, fix division #5166

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

jwhitlock
Copy link
Member

This PR configures Dart Sass to silence deprecation warnings that appear after the upgrade to sass 1.80.x. This will prevent other errors and warnings from getting lost in the noise as we incrementally fix the issues.

This PR does fix the easiest issue, the deprecation of slash as division. The automated fix was applied with:

cd frontend
npx sass-migrator division **/*.scss

How to test:

This can be confirmed in local dev or by looking at the CI build for this PR:

  • Run cd frontend; npm run build
    • Instead of 24,000 warning lines, no warning lines
    • The file frontend/out/_next/static/css/7b7332110014f2b1.css still exists, since the contents did not change and the filename is based on a hash of the contents. The file 7b7332110014f2b1.css.map is different, since the source changed.

Dart Sass 1.80.0 added deprecation warnings for several features used by
Relay and mozilla-protocol v17. This silences the warnings so that other
build issues will not be lost in the noise.
Use migrator to replace division with multiplication:

npx sass-migrator division **/*.scss

No change in the generated .css file.
@jwhitlock jwhitlock requested a review from groovecoder November 1, 2024 15:46
@groovecoder groovecoder added this pull request to the merge queue Nov 1, 2024
Merged via the queue into main with commit b96932c Nov 1, 2024
29 checks passed
@groovecoder groovecoder deleted the sass-1-80-updates-mpp-3946 branch November 1, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants