sast
sast copied to clipboard
Sass Interpolations are not correctly stringified
Sass interpolations (https://sass-lang.com/documentation/interpolation) are parsed correctly, but stringify() removes them, resulting in incorrect code.
Steps to reproduce:
const tree = sast.parse('width: calc(100% - #{2 * $spacer})', { syntax: 'sass' });
console.log(sast.stringify(tree));
// should output: width: calc(100% - #{2 * $spacer})
// current output: width: calc(100% - 2 * $spacer)
This happens for both sass and scss.
Thanks for the report!