File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
turbopack/crates/turbopack/src/module_options Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -814,10 +814,14 @@ pub fn styles_rule_condition() -> RuleCondition {
814
814
RuleCondition :: not( RuleCondition :: ContentTypeStartsWith (
815
815
"text/css+module" . into( ) ,
816
816
) ) ,
817
+ ] ) ,
818
+ RuleCondition :: all( vec![
817
819
RuleCondition :: ContentTypeStartsWith ( "text/sass" . into( ) ) ,
818
820
RuleCondition :: not( RuleCondition :: ContentTypeStartsWith (
819
821
"text/sass+module" . into( ) ,
820
822
) ) ,
823
+ ] ) ,
824
+ RuleCondition :: all( vec![
821
825
RuleCondition :: ContentTypeStartsWith ( "text/scss" . into( ) ) ,
822
826
RuleCondition :: not( RuleCondition :: ContentTypeStartsWith (
823
827
"text/scss+module" . into( ) ,
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl ModuleOptions {
152
152
153
153
let module_css_condition = module_css_condition. clone ( ) . unwrap_or_else ( || {
154
154
RuleCondition :: any ( vec ! [
155
- RuleCondition :: ResourcePathEndsWith ( ".module.scss " . to_string( ) ) ,
155
+ RuleCondition :: ResourcePathEndsWith ( ".module.css " . to_string( ) ) ,
156
156
RuleCondition :: ContentTypeStartsWith ( "text/css+module" . to_string( ) ) ,
157
157
] )
158
158
} ) ;
You can’t perform that action at this time.
0 commit comments