Skip to content

Commit dc35419

Browse files
authored
build: Dont mangle internal properties in integrations (getsentry#2095)
1 parent 4432f89 commit dc35419

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/browser/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const commitHash = require('child_process')
1111
const terserInstance = terser({
1212
mangle: {
1313
// captureExceptions and captureMessage are public API methods and they don't need to be listed here
14-
// as mangler doesn't touch user-facing thing, however sentryWrapepd is not, and it would be mangled into a minified version.
14+
// as mangler doesn't touch user-facing thing, however sentryWrapped is not, and it would be mangled into a minified version.
1515
// We need those full names to correctly detect our internal frames for stripping.
1616
// I listed all of them here just for the clarity sake, as they are all used in the frames manipulation process.
1717
reserved: ['captureException', 'captureMessage', 'sentryWrapped'],

packages/integrations/rollup.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ import * as fs from 'fs';
77
const terserInstance = terser({
88
mangle: {
99
// captureExceptions and captureMessage are public API methods and they don't need to be listed here
10-
// as mangler doesn't touch user-facing thing, however sentryWrapepd is not, and it would be mangled into a minified version.
10+
// as mangler doesn't touch user-facing thing, however sentryWrapped is not, and it would be mangled into a minified version.
1111
// We need those full names to correctly detect our internal frames for stripping.
1212
// I listed all of them here just for the clarity sake, as they are all used in the frames manipulation process.
1313
reserved: ['captureException', 'captureMessage', 'sentryWrapped'],
14-
properties: {
15-
regex: /^_/,
16-
},
14+
properties: false,
1715
},
1816
});
1917

0 commit comments

Comments
 (0)