postcss-pxtransform 4.0.8-beta.0 → 4.0.8
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/index.js +0 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -291,8 +291,6 @@ function createPxReplace (rootValue, unitPrecision, minPixelValue, onePxTransfor
|
|
|
291
291
|
return m
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
// 转换工作,如果是harmony的话不转换
|
|
295
|
-
if (platform === 'harmony') { return m }
|
|
296
294
|
let val = pixels / rootValue(input, m, $1)
|
|
297
295
|
if (unitPrecision >= 0 && unitPrecision <= 100) {
|
|
298
296
|
val = toFixed(val, unitPrecision)
|