@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.
- package/dist/rrweb-snapshot.cjs +10 -5
- package/dist/rrweb-snapshot.cjs.map +1 -1
- package/dist/rrweb-snapshot.js +10 -5
- package/dist/rrweb-snapshot.js.map +1 -1
- package/dist/rrweb-snapshot.umd.cjs +10 -5
- package/dist/rrweb-snapshot.umd.cjs.map +2 -2
- package/dist/rrweb-snapshot.umd.min.cjs +1 -1
- package/dist/rrweb-snapshot.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/rrweb-snapshot.cjs
CHANGED
|
@@ -5105,11 +5105,16 @@ function getTagName(n) {
|
|
|
5105
5105
|
function adaptCssForReplay(cssText, cache) {
|
|
5106
5106
|
const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
|
|
5107
5107
|
if (cachedStyle) return cachedStyle;
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5108
|
+
let result2 = cssText;
|
|
5109
|
+
try {
|
|
5110
|
+
const ast = postcss$1([
|
|
5111
|
+
mediaSelectorPlugin,
|
|
5112
|
+
pseudoClassPlugin
|
|
5113
|
+
]).process(cssText);
|
|
5114
|
+
result2 = ast.css;
|
|
5115
|
+
} catch (error) {
|
|
5116
|
+
console.warn("Failed to adapt css for replay", error);
|
|
5117
|
+
}
|
|
5113
5118
|
cache == null ? void 0 : cache.stylesWithHoverClass.set(cssText, result2);
|
|
5114
5119
|
return result2;
|
|
5115
5120
|
}
|