less-plugin-functions
less-plugin-functions copied to clipboard
There seems to be an issue with less calc function
To reproduce the issue, check this https://github.com/yuxuan/less-plugin-functions-issue.
The less code:
@padding: 12px;
.cls {
padding-right: calc(@padding - var(--width));
}
if compile with LessPluginFunctions
, it would throw Cannot read property 'numerator' of undefined
error. If without the plugin, it compiled successfully.
Please help.
It seems due to this commit https://github.com/less/less.js/pull/3532/commits/18007437bd2985e41a43c55580fe95ee1f37f12a
So am I.😂