Feat(curriculum): scss not sass (#38764)

This commit is contained in:
Oliver Eyton-Williams
2020-05-09 16:31:18 +02:00
committed by GitHub
parent b017ce192c
commit 5e56a9a938
9 changed files with 21 additions and 19 deletions

View File

@@ -177,7 +177,9 @@ function getBabelOptions({ preview = false, protect = true }) {
const sassWorker = createWorker(sassCompile);
async function transformSASS(element) {
const styleTags = element.querySelectorAll('style[type="text/sass"]');
// we only teach scss syntax, not sass. Also the compiler does not seem to be
// able to deal with sass.
const styleTags = element.querySelectorAll('style[type~="text/scss"]');
await Promise.all(
[].map.call(styleTags, async style => {
style.type = 'text/css';