@tarojs/runtime 3.7.0-alpha.20 → 3.7.0-alpha.22

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.
@@ -368,6 +368,7 @@ function hydrate(node) {
368
368
  const nodeName = node.nodeName;
369
369
  if (isText(node)) {
370
370
  return {
371
+ sid: node.sid,
371
372
  ["v" /* Shortcuts.Text */]: node.nodeValue,
372
373
  ["nn" /* Shortcuts.NodeName */]: ((_a = componentsAlias[nodeName]) === null || _a === void 0 ? void 0 : _a._num) || '8'
373
374
  };
@@ -992,7 +993,7 @@ function setStyle(newVal, styleKey) {
992
993
  if (old === newVal)
993
994
  return;
994
995
  !this._pending && recordCss(this);
995
- if (shared.isNull(newVal) || shared.isUndefined(newVal)) {
996
+ if (shared.isNull(newVal) || shared.isUndefined(newVal) || newVal === '') {
996
997
  this._usedStyleProp.delete(styleKey);
997
998
  delete this._value[styleKey];
998
999
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/runtime",
3
- "version": "3.7.0-alpha.20",
3
+ "version": "3.7.0-alpha.22",
4
4
  "description": "taro runtime for mini apps.",
5
5
  "main:h5": "dist/runtime.h5.js",
6
6
  "main": "dist/runtime.esm.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "lodash-es": "4.17.21",
23
- "@tarojs/shared": "3.7.0-alpha.20"
23
+ "@tarojs/shared": "3.7.0-alpha.22"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@rollup/plugin-buble": "^0.21.3",