My sass modules can import each other like below.
// LinearLayout.scss
@mixin LinearLayout { ... }
linear-layout { @include LinearLayout; }
// ScrollView.scss
@use "LinearLayout" as *;
@mixin ScrollView {
@include LinearLayout;
...
}
scroll-view { @include ScrollView; }
And because each sass module ends up in the bundled css file by being imported in scripts, the bundled css file contains duplicate css selectors.
How can I remove the duplicates?