LESS: use math:parens-division

This is the default mode in LESS4.
Fixes #1154.
This commit is contained in:
tophf 2021-01-16 09:18:54 +03:00
parent 914943ed4c
commit 4338f67352

View File

@ -37,7 +37,10 @@ const BUILDERS = Object.assign(Object.create(null), {
}
require(['/vendor/less-bundle/less.min']); /* global less */
const varDefs = Object.keys(vars).map(key => `@${key}:${vars[key].value};\n`).join('');
return (await less.render(varDefs + source)).css;
const res = await less.render(varDefs + source, {
math: 'parens-division',
});
return res.css;
},
},