Skip to content

Commit 46de4e2

Browse files
authored
fix(replay): Don't mangle private rrweb property (#7033)
Add rrweb's `_cssText` property to the list of reserved properties to be excluded from mangling.
1 parent e0a75f5 commit 46de4e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rollup/plugins/bundlePlugins.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ export function makeTerserPlugin() {
119119
// We want to keept he _replay and _isEnabled variable unmangled to enable integration tests to access it
120120
'_replay',
121121
'_isEnabled',
122+
// We also can't mangle rrweb private fields when bundling rrweb in the replay CDN bundles
123+
'_cssText',
122124
// We want to keep the _integrations variable unmangled to send all installed integrations from replay
123125
'_integrations',
124126
],

0 commit comments

Comments
 (0)