Repository navigation
Resolve the Sass deprecations of the app and quiet those of dependencies - #53
Merged
Merged
Conversation
sass-migrator's division and color migrations rewrite the app's own stylesheets. The color migration writes `$lightness: -5` for `darken($c, 5)`, so the stage adds the percent unit. quietDeps in the Vite config leaves out the warnings of libraries such as bourbon. On ember-observer, the compiled CSS is the same, byte for byte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
sassstage. emberobserver/client#241's build logs about 280 Sass deprecation warnings:import,global-builtin,color-functions,slash-divandif-function. Most come from bourbon 4.2.3 and bourbon-neat 1.7.1.The stage:
divisionandcolormigrations on the app's own stylesheets. The stylesheets of load paths, such asnode_modules, are not changed.%unit that the color migration leaves out. It writes$lightness: -5fordarken($c, 5), and Sass deprecates the number without its unit (function-units).css.preprocessorOptions.scss.quietDepsin the Vite config, so that Sass leaves out the deprecations of dependencies.@importinember-upgrade-progress.yaml.sass-migrator modulemoves them to@useonly after libraries such as bourbon are Sass modules or are gone.Checked on ember-observer: the compiled CSS is the same, byte for byte (65,169 bytes). The build logs 44 warnings, all
importin the app's own stylesheets, which stay while the app uses bourbon.The migrations run one at a time, because
sass-migrator division colorreadscoloras a stylesheet.🤖 Generated with Claude Code