elycruz / rollup-plugin-sass

Rollup .sass files.
MIT License
92 stars 34 forks source link

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0 #159

Open twilson90 opened 1 month ago

twilson90 commented 1 month ago

Whenever I use rollup with this plugin I get 2 identical warnings in the output:

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api
claycarpenter commented 1 month ago

This warning can be silenced by adding silenceDeprecations: ['legacy-js-api'] to your options property.

The full sass call would then look something like:

sass({
  // ...you existing configuration

  options: {
    silenceDeprecations: ['legacy-js-api'],
  },
})

This works fine for me and silences the warning until root issue can be resolved.

twilson90 commented 3 weeks ago

This warning can be silenced by adding silenceDeprecations: ['legacy-js-api'] to your options property.

The full sass call would then look something like:

sass({
  // ...you existing configuration

  options: {
    silenceDeprecations: ['legacy-js-api'],
  },
})

This works fine for me and silences the warning until root issue can be resolved.

Not working for me :(