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