From fe1fb8c6849bf2e22191e956a538e9e00f836421 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Mon, 18 Nov 2024 17:31:34 +0100 Subject: [PATCH] fix(cdn): Ensure `_sentryModuleMetadata` is not mangled (#14344) Fixes https://github.com/getsentry/sentry-javascript/issues/14343 --- dev-packages/rollup-utils/plugins/bundlePlugins.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev-packages/rollup-utils/plugins/bundlePlugins.mjs b/dev-packages/rollup-utils/plugins/bundlePlugins.mjs index a3e25c232479..dce0ca15bf35 100644 --- a/dev-packages/rollup-utils/plugins/bundlePlugins.mjs +++ b/dev-packages/rollup-utils/plugins/bundlePlugins.mjs @@ -138,6 +138,8 @@ export function makeTerserPlugin() { '_resolveFilename', // Set on e.g. the shim feedbackIntegration to be able to detect it '_isShim', + // This is used in metadata integration + '_sentryModuleMetadata', ], }, },