Skip to content

Commit bfe6d5f

Browse files
committed
add an additional workaround for the scss parser
1 parent 4bbd318 commit bfe6d5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/sass/analyzer/parse.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export const makeParserModule = (
88
) => {
99
return {
1010
getSassAst: (contents: string) => {
11+
// scss-parser doesn't support the `$.` operator for module access and it breaks their parser oO, so we remove it.
12+
contents = contents.replaceAll(".$", "_dot_dollar");
13+
1114
// scss-parser doesn't support the `...` operator and it breaks their parser oO, so we remove it.
1215
// our analysis doesn't need to know about it.
1316
contents = contents.replaceAll("...", "_dot_dot_dot");

0 commit comments

Comments
 (0)