Skip to content

Commit 2915be0

Browse files
author
Luca Forstner
committed
fix: Escape release string in injection snippet
1 parent 95fe7e0 commit 2915be0

File tree

1 file changed

+1
-1
lines changed
  • packages/bundler-plugin-core/src

1 file changed

+1
-1
lines changed

packages/bundler-plugin-core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export function generateGlobalInjectorCode({
321321
self :
322322
{};
323323
324-
_global.SENTRY_RELEASE={id:"${release}"};`;
324+
_global.SENTRY_RELEASE={id:${JSON.stringify(release)}};`;
325325

326326
if (injectBuildInformation) {
327327
const buildInfo = getBuildInformation();

0 commit comments

Comments
 (0)