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