postcss-calc 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/lib/transform.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/lib/transform.js
CHANGED
|
@@ -17,6 +17,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
var MATCH_CALC = /((?:\-[a-z]+\-)?calc)/;
|
|
18
18
|
|
|
19
19
|
function transformValue(value, options, result, item) {
|
|
20
|
+
if (!value) {
|
|
21
|
+
return value;
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
var reduced = (0, _reduceCssCalc2.default)(value, options.precision);
|
|
21
25
|
// if the warnWhenCannotResolve option is on, inform the user that the calc
|
|
22
26
|
// expression could not be resolved to a single value
|