From 38e497ffb7f090eb8562ab007e4c75b6bf39d78d Mon Sep 17 00:00:00 2001 From: Tc001 <55956895+Tc-001@users.noreply.github.com> Date: Tue, 27 Jul 2021 15:51:03 +0300 Subject: [PATCH] Correctly compile `lang="sass" styles` (#857) * Added sass support * Combined cases, added check for indentedSyntax * Corrected changeset --- src/compiler/transform/styles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/transform/styles.ts b/src/compiler/transform/styles.ts index 715dfb9422b2..53e7e0adc527 100644 --- a/src/compiler/transform/styles.ts +++ b/src/compiler/transform/styles.ts @@ -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: {