From 2464bd66c1fc21d4a7d563e6c51912f297a6cf51 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Mon, 12 Dec 2022 09:29:55 +0100 Subject: [PATCH 1/2] fix(replay): Do not mangle private fields used by Replay --- rollup/plugins/bundlePlugins.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rollup/plugins/bundlePlugins.js b/rollup/plugins/bundlePlugins.js index 03aefad22ec6..eacb7ce28b30 100644 --- a/rollup/plugins/bundlePlugins.js +++ b/rollup/plugins/bundlePlugins.js @@ -104,6 +104,11 @@ export function makeTerserPlugin() { '_driver', '_initStorage', '_support', + // TODO: Get rid of these once we use the SDK to send replay events + '_breadcrumbs', // replay uses scope._breadcrumbs + '_withClient', // replay uses hub._withClient + '_prepareEvent', // replay uses client._prepareEvent + '_updateSessionFromEvent', // replay client._updateSessionFromEvent ], }, }, From b9981a896d40d5c7392bce123b1ab44057fa8125 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Mon, 12 Dec 2022 10:39:10 +0100 Subject: [PATCH 2/2] Remove unnecessary entries after refactors Co-authored-by: Francesco Novy --- rollup/plugins/bundlePlugins.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/rollup/plugins/bundlePlugins.js b/rollup/plugins/bundlePlugins.js index eacb7ce28b30..11cb8192a1b6 100644 --- a/rollup/plugins/bundlePlugins.js +++ b/rollup/plugins/bundlePlugins.js @@ -105,8 +105,6 @@ export function makeTerserPlugin() { '_initStorage', '_support', // TODO: Get rid of these once we use the SDK to send replay events - '_breadcrumbs', // replay uses scope._breadcrumbs - '_withClient', // replay uses hub._withClient '_prepareEvent', // replay uses client._prepareEvent '_updateSessionFromEvent', // replay client._updateSessionFromEvent ],