Feat(curriculum): scss not sass (#38764)
This commit is contained in:
committed by
GitHub
parent
b017ce192c
commit
5e56a9a938
@@ -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';
|
||||
|
Reference in New Issue
Block a user