Open ManuelSch opened 4 years ago
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!
Sass interpolations (https://sass-lang.com/documentation/interpolation) are parsed correctly, but stringify() removes them, resulting in incorrect code.
Steps to reproduce:
This happens for both sass and scss.