Skip to content

Commit

Permalink
fix: Escape release string in injection snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Aug 12, 2024
1 parent 95fe7e0 commit 2915be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bundler-plugin-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2915be0

Please sign in to comment.