frosty 0.0.92 → 0.0.93

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.
@@ -4018,9 +4018,13 @@ class _DOMRenderer extends _Renderer {
4018
4018
  ssrData.setAttribute('type', 'text/plain');
4019
4019
  ssrData.innerHTML = compress(JSON.stringify(Object.fromEntries(this._tracked_server_resource)));
4020
4020
  }
4021
- this.__replaceChildren(head, _.compact([...this._tracked_head_children, styleElem, ssrData]));
4021
+ this.__replaceChildren(head, _.compact([
4022
+ ...this._tracked_head_children,
4023
+ styleElem.textContent && styleElem,
4024
+ ssrData,
4025
+ ]));
4022
4026
  }
4023
- else if (styleElem.parentNode !== head) {
4027
+ else if (styleElem.parentNode !== head && styleElem.textContent) {
4024
4028
  head.appendChild(styleElem);
4025
4029
  }
4026
4030
  if (!this.document.head) {
@@ -4261,4 +4265,4 @@ class _DOMRenderer extends _Renderer {
4261
4265
  }
4262
4266
 
4263
4267
  export { DOMNativeNode as D, _DOMRenderer as _ };
4264
- //# sourceMappingURL=common-8aOatOjL.mjs.map
4268
+ //# sourceMappingURL=common-D932m3CD.mjs.map