Closed Sese-Schneider closed 1 month ago
Latest commit: 4ff42feb658f2a8cfa935b52ecb4cac83cae3288
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Oh nice thanks for contributing this! Tests are passing and code looks alright but it's my day off today so I'll check this more thoroughly tomorrow morning with fresh eyes :)
A recent PR (https://github.com/tokens-studio/sd-transforms/pull/49) broke the ability to evaluate math expressions with units.
This PR changes the order of operations, so that both
eval-expr
andpostcss-calc-ast-parser
are applied to the expression without any units. Furthermore I added some additional checks to increase the speed of the evaluation function.