@posthog/rrweb 0.0.6 → 0.0.7

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/rrweb.js CHANGED
@@ -5095,11 +5095,16 @@ function getTagName(n2) {
5095
5095
  function adaptCssForReplay(cssText, cache) {
5096
5096
  const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
5097
5097
  if (cachedStyle) return cachedStyle;
5098
- const ast = postcss$1$1([
5099
- mediaSelectorPlugin,
5100
- pseudoClassPlugin
5101
- ]).process(cssText);
5102
- const result2 = ast.css;
5098
+ let result2 = cssText;
5099
+ try {
5100
+ const ast = postcss$1$1([
5101
+ mediaSelectorPlugin,
5102
+ pseudoClassPlugin
5103
+ ]).process(cssText);
5104
+ result2 = ast.css;
5105
+ } catch (error) {
5106
+ console.warn("Failed to adapt css for replay", error);
5107
+ }
5103
5108
  cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
5104
5109
  return result2;
5105
5110
  }