How to import external files inside the selector with Dart Sass

Viewed 184

I want to import external files inside the selector using Dart Sass. When I use @use to realize this, it causes an error.

//error
.selector {
    @use 'external-file';
}

I used to use @import to do this before with node-sass and it was OK.

.selector {
    @import 'external-file';
}

Now I'd like to do the same thing with Dart Sass and want to know how. Thank you.

1 Answers
Related