@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.
@@ -5146,11 +5146,16 @@ function getTagName(n2) {
5146
5146
  function adaptCssForReplay(cssText, cache) {
5147
5147
  const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
5148
5148
  if (cachedStyle) return cachedStyle;
5149
- const ast = postcss$1$1([
5150
- mediaSelectorPlugin,
5151
- pseudoClassPlugin
5152
- ]).process(cssText);
5153
- const result2 = ast.css;
5149
+ let result2 = cssText;
5150
+ try {
5151
+ const ast = postcss$1$1([
5152
+ mediaSelectorPlugin,
5153
+ pseudoClassPlugin
5154
+ ]).process(cssText);
5155
+ result2 = ast.css;
5156
+ } catch (error) {
5157
+ console.warn("Failed to adapt css for replay", error);
5158
+ }
5154
5159
  cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
5155
5160
  return result2;
5156
5161
  }