diff --git a/.changeset/cold-bikes-float.md b/.changeset/cold-bikes-float.md new file mode 100644 index 0000000000..3b13d84db5 --- /dev/null +++ b/.changeset/cold-bikes-float.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Added sass support diff --git a/packages/astro/src/compiler/transform/styles.ts b/packages/astro/src/compiler/transform/styles.ts index 715dfb9422..53e7e0adc5 100644 --- a/packages/astro/src/compiler/transform/styles.ts +++ b/packages/astro/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: {