Open Rezyan opened 1 year ago
Heads up: we (the Sass team) are going to start emitting deprecation warnings for uses of the legacy API pretty soon.
Since Sass 1.79.1 the deprecation warnings are now active:
Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
Hi,
After having created a performance issue for the
sass
package, I learned that therender()
andrenderSync()
methods were deprecated and suffered from performance issues:We can also notice it in the comments of the code:
Ideally, we should suggest a way to use
compile()
andcompileAsync()
methods for the following lines:https://github.com/dlmanning/gulp-sass/blob/c04bb67043fdbcb930152232ee9ba4caff0b2599/index.js#L145
https://github.com/dlmanning/gulp-sass/blob/c04bb67043fdbcb930152232ee9ba4caff0b2599/index.js#L158
Example from
sass
: