@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.
@@ -5154,11 +5154,16 @@ function getTagName(n) {
5154
5154
  function adaptCssForReplay(cssText, cache) {
5155
5155
  const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
5156
5156
  if (cachedStyle) return cachedStyle;
5157
- const ast = postcss$1([
5158
- mediaSelectorPlugin,
5159
- pseudoClassPlugin
5160
- ]).process(cssText);
5161
- const result2 = ast.css;
5157
+ let result2 = cssText;
5158
+ try {
5159
+ const ast = postcss$1([
5160
+ mediaSelectorPlugin,
5161
+ pseudoClassPlugin
5162
+ ]).process(cssText);
5163
+ result2 = ast.css;
5164
+ } catch (error) {
5165
+ console.warn("Failed to adapt css for replay", error);
5166
+ }
5162
5167
  cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
5163
5168
  return result2;
5164
5169
  }