From d3efaffa36537783c3b9de46ad205b1f56b4a1e4 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Thu, 2 Feb 2023 09:01:13 +0100 Subject: [PATCH] fix(replay): Don't mangle private rrweb property --- rollup/plugins/bundlePlugins.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rollup/plugins/bundlePlugins.js b/rollup/plugins/bundlePlugins.js index 0fb662b7e3e4..7e48452e3d33 100644 --- a/rollup/plugins/bundlePlugins.js +++ b/rollup/plugins/bundlePlugins.js @@ -119,6 +119,8 @@ export function makeTerserPlugin() { // We want to keept he _replay and _isEnabled variable unmangled to enable integration tests to access it '_replay', '_isEnabled', + // We also can't mangle rrweb private fields when bundling rrweb in the replay CDN bundles + '_cssText', // We want to keep the _integrations variable unmangled to send all installed integrations from replay '_integrations', ],