@import is deprecated. Change to @use and @forward. #30

Closed
opened 2025-05-05 12:55:53 -04:00 by am · 0 comments
Owner

The @import rule is being deprecated in favour of @use and @forward. See this stack overflow question for more information regarding timelines.

As we don’t know when this this will be dropped entirely from Dart Sass, or when those versions will be implemented in the products DS2-Core will compile with, we should probably get this in a release soon.

For core, should we consider creating a file for core to @forward all instead of using @use, so they can be called as core.[function name]?

The @import rule is being deprecated in favour of @use and @forward. See this [stack overflow question](https://stackoverflow.com/questions/62757419/whats-the-difference-between-import-and-use-scss-rules#62757625) for more information regarding timelines. As we don’t know when this this will be dropped entirely from Dart Sass, or when those versions will be implemented in the products DS2-Core will compile with, we should probably get this in a release soon. For core, should we consider creating a file for core to @forward all instead of using @use, so they can be called as core.[function name]?
am added this to the v1.2 milestone 2025-05-07 11:49:18 -04:00
am closed this issue 2025-05-14 18:05:42 -04:00
Sign in to join this conversation.
No description provided.