From 2915be0cc4348ae6f721601f1490d60542a6b97b Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Mon, 12 Aug 2024 10:59:11 +0200 Subject: [PATCH] fix: Escape release string in injection snippet --- packages/bundler-plugin-core/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bundler-plugin-core/src/utils.ts b/packages/bundler-plugin-core/src/utils.ts index 18860e2a..a49efd6e 100644 --- a/packages/bundler-plugin-core/src/utils.ts +++ b/packages/bundler-plugin-core/src/utils.ts @@ -321,7 +321,7 @@ export function generateGlobalInjectorCode({ self : {}; - _global.SENTRY_RELEASE={id:"${release}"};`; + _global.SENTRY_RELEASE={id:${JSON.stringify(release)}};`; if (injectBuildInformation) { const buildInfo = getBuildInformation();