@posthog/rrweb-snapshot 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.
@@ -5105,11 +5105,16 @@ function getTagName(n) {
5105
5105
  function adaptCssForReplay(cssText, cache) {
5106
5106
  const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
5107
5107
  if (cachedStyle) return cachedStyle;
5108
- const ast = postcss$1([
5109
- mediaSelectorPlugin,
5110
- pseudoClassPlugin
5111
- ]).process(cssText);
5112
- const result2 = ast.css;
5108
+ let result2 = cssText;
5109
+ try {
5110
+ const ast = postcss$1([
5111
+ mediaSelectorPlugin,
5112
+ pseudoClassPlugin
5113
+ ]).process(cssText);
5114
+ result2 = ast.css;
5115
+ } catch (error) {
5116
+ console.warn("Failed to adapt css for replay", error);
5117
+ }
5113
5118
  cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
5114
5119
  return result2;
5115
5120
  }