Skip to content

Resolve the Sass deprecations of the app and quiet those of dependencies - #53

Merged
NullVoxPopuli-ai-agent merged 1 commit into
mainfrom
nvp/sass-deprecations
Nov 25, 2026
Merged

NullVoxPopuli-ai-agent merged 1 commit into
mainfrom
nvp/sass-deprecations

Conversation

@NullVoxPopuli-ai-agent

Copy link
Copy Markdown
Collaborator

Adds the sass stage. emberobserver/client#241's build logs about 280 Sass deprecation warnings: import, global-builtin, color-functions, slash-div and if-function. Most come from bourbon 4.2.3 and bourbon-neat 1.7.1.

The stage:

  • runs sass-migrator's division and color migrations on the app's own stylesheets. The stylesheets of load paths, such as node_modules, are not changed.
  • adds the % unit that the color migration leaves out. It writes $lightness: -5 for darken($c, 5), and Sass deprecates the number without its unit (function-units).
  • sets css.preprocessorOptions.scss.quietDeps in the Vite config, so that Sass leaves out the deprecations of dependencies.
  • records the stylesheets that still use @import in ember-upgrade-progress.yaml. sass-migrator module moves them to @use only 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 import in the app's own stylesheets, which stay while the app uses bourbon.

The migrations run one at a time, because sass-migrator division color reads color as a stylesheet.

🤖 Generated with Claude Code

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>
@NullVoxPopuli-ai-agent NullVoxPopuli-ai-agent added the enhancement New feature or request label Nov 24, 2026
@NullVoxPopuli-ai-agent
NullVoxPopuli-ai-agent merged commit 9e56484 into main Nov 25, 2026
28 of 31 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants