Skip to content

Commit

Permalink
Correctly compile lang="sass" styles (withastro#857)
Browse files Browse the repository at this point in the history
* Added sass support

* Combined cases, added check for indentedSyntax

* Corrected changeset
  • Loading branch information
Tc-001 authored Jul 27, 2021
1 parent a7ee7dc commit 38e497f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/transform/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async function transformStyle(code: string, { logging, type, filename, scopedCla
}
case 'sass':
case 'scss': {
css = sass.renderSync({ data: code, includePaths }).css.toString('utf8');
css = sass.renderSync({ data: code, includePaths, indentedSyntax: styleType === 'sass' }).css.toString('utf8');
break;
}
default: {
Expand Down

0 comments on commit 38e497f

Please sign in to comment.