@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
|
@@ -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
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
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
|
}
|