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

Sass option quietDeps does not seem to work #651

Open
Renkas opened this issue Aug 8, 2024 · 0 comments
Open

Sass option quietDeps does not seem to work #651

Renkas opened this issue Aug 8, 2024 · 0 comments

Comments

@Renkas
Copy link

Renkas commented Aug 8, 2024

Describe the bug
Sass option quietDeps does not seem to work. When setting this true I'll still see deprecation warnings in console output

Logs

Deprecation Warning: Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`.

More info: https://sass-lang.com/d/mixed-decls

   ┌──> node_modules/@material/linear-progress/_mixins.scss
70 │         transition: animation-functions.exit-temporary(opacity, 250ms);
   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> node_modules/@material/dom/_dom.scss
95 │ ┌     @media screen and (forced-colors: active) {
96 │ │       @content;
97 │ │     }
   │ └─── nested rule
   ╵
    node_modules/@material/linear-progress/_mixins.scss 70:7                @content
    node_modules/@material/feature-targeting/_feature-targeting.scss 218:5  targets()
    node_modules/@material/linear-progress/_mixins.scss 69:5                core-styles()
    src/lib/layout/PageLoader.svelte 6:7                                    root stylesheet

To Reproduce

 preprocess: [
    sveltePreprocess({
      postcss: {
        plugins: [autoprefixer()]
      },
      sass: {
        quietDeps: true
      }
    })
  ],

Expected behavior
There should be no such output in the console

Information about your project:

  • svelte-preprocess version 6.0.2

  • Whether your project uses Webpack or Rollup. It uses Vite

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

No branches or pull requests

1 participant