@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 +10 -5
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +10 -5
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +10 -5
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +1 -1
- package/dist/rrweb.umd.min.cjs.map +2 -2
- package/package.json +1 -1
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
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
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
|
}
|