diff --git a/index.js b/index.js index 06e1778..fb5b998 100644 --- a/index.js +++ b/index.js @@ -27,9 +27,7 @@ module.exports = (css, settings) => { const data = stripIndent(optionData) + '\n' + stripIndent(cssWithPlaceholders) const file = settings.babel && settings.babel.filename - const preprocessed = sass - .renderSync(Object.assign({}, { file }, settings.sassOptions, { data })) - .css.toString() + const preprocessed = sass.compileString(data, settings.sassOptions).css.toString(); return preprocessed .replace(