We currently allow the old Sass @import as well as the modern @use statements. Supporting these means:
more tests to udpate
many more source files (one for each module)
It’s also causing issues with our use of CSS custom properties — when using @import, the value of a custom property must be string interpolated e.g. --custom-property-name: #{$custom-property-value}. This causes errors, and is less readable.
Since the legacy method is not used, and is causing friction, it may be time to drop support.
We currently allow the old Sass
@import
as well as the modern@use
statements. Supporting these means:@import
, the value of a custom property must be string interpolated e.g.--custom-property-name: #{$custom-property-value}
. This causes errors, and is less readable.Since the legacy method is not used, and is causing friction, it may be time to drop support.