Warn instead of fail on exceptions thrown from postcss (#1580)

* postcss was introduced in #1458 for use within adaptCssForReplay
* #1600 fixes the main case where invalid css could be introduced when if valid css from the output of `sheet.cssRules` was split according to how it was split across text nodes of the <style>
* the guard introduced here is still useful as we likely in future will switch to capturing the raw stylesheet contents (both <style> and <link>), at which point we will be much less confident of getting valid css
This commit is contained in:
John Henry Gunther
2026-04-01 12:00:00 +08:00
committed by GitHub
parent ea3c555b49
commit 041a2e237f
3 changed files with 30 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
---
"rrweb-snapshot": patch
---
Handle exceptions thrown from postcss when calling adaptCssForReplay