@tarojs/taro-h5 3.6.26 → 3.6.27

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/dist/index.esm.js CHANGED
@@ -6043,9 +6043,9 @@ const pxTransform = function (size = 0) {
6043
6043
  const config = getConfig.call(this);
6044
6044
  const baseFontSize = config.baseFontSize || defaultBaseFontSize;
6045
6045
  const deviceRatio = config.deviceRatio || defaultDesignRatio;
6046
- const designWidth = (((input = 0) => isFunction(config.designWidth)
6046
+ const designWidth = ((input = 0) => isFunction(config.designWidth)
6047
6047
  ? config.designWidth(input)
6048
- : config.designWidth))(size);
6048
+ : config.designWidth)(size);
6049
6049
  if (!(designWidth in config.deviceRatio)) {
6050
6050
  throw new Error(`deviceRatio 配置中不存在 ${designWidth} 的设置!`);
6051
6051
  }