Skip to content

Commit

Permalink
fix(replay): Do not mangle _metadata in client options (#6600)
Browse files Browse the repository at this point in the history
Exclude the `_metadata` field from being mangled which caused invalid replay envelope headers
  • Loading branch information
Lms24 authored Dec 22, 2022
1 parent 7ec5853 commit de8cf10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rollup/plugins/bundlePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export function makeTerserPlugin() {
'_support',
// TODO: Get rid of these once we use the SDK to send replay events
'_prepareEvent', // replay uses client._prepareEvent
'_metadata', // replay uses client.getOptions()._metadata
],
},
},
Expand Down

0 comments on commit de8cf10

Please sign in to comment.