Skip to content

Commit f83cf31

Browse files
committed
fix(core): optional-css-modules should work with turbopack
1 parent b0306dd commit f83cf31

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/lucky-feet-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-md/core": patch
3+
---
4+
5+
Fixed the optional-css-module sass util to work with turbopack

packages/core/src/_utils.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,9 @@ $_swappable-properties: text-align;
360360
$parent-selector: true
361361
) {
362362
@if $css-modules {
363-
$selector: ":global #{$selector} :local";
363+
$selector: ":global(#{$selector})";
364364
}
365+
365366
@if $parent-selector {
366367
$selector: "#{$selector} &";
367368
}

0 commit comments

Comments
 (0)