File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed
dev-packages/browser-integration-tests/suites/feedback Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,25 @@ module.exports = [
10
10
gzip : true ,
11
11
limit : '24 KB' ,
12
12
} ,
13
+ {
14
+ name : '@sentry/browser - with treeshaking flags' ,
15
+ path : 'packages/browser/build/npm/esm/index.js' ,
16
+ import : createImport ( 'init' ) ,
17
+ gzip : true ,
18
+ limit : '24 KB' ,
19
+ modifyWebpackConfig : function ( config ) {
20
+ const webpack = require ( 'webpack' ) ;
21
+ config . plugins . push (
22
+ new webpack . DefinePlugin ( {
23
+ __SENTRY_DEBUG__ : false ,
24
+ __RRWEB_EXCLUDE_SHADOW_DOM__ : true ,
25
+ __RRWEB_EXCLUDE_IFRAME__ : true ,
26
+ __SENTRY_EXCLUDE_REPLAY_WORKER__ : true ,
27
+ } ) ,
28
+ ) ;
29
+ return config ;
30
+ } ,
31
+ } ,
13
32
{
14
33
name : '@sentry/browser (incl. Tracing)' ,
15
34
path : 'packages/browser/build/npm/esm/index.js' ,
Original file line number Diff line number Diff line change @@ -9,12 +9,9 @@ const feedback = feedbackIntegration({
9
9
window . Sentry = Sentry ;
10
10
window . feedback = feedback ;
11
11
12
-
13
12
Sentry . init ( {
14
13
dsn :
'https://[email protected] /1337' ,
15
- integrations : [
16
- feedback ,
17
- ] ,
14
+ integrations : [ feedback ] ,
18
15
} ) ;
19
16
20
17
feedback . attachTo ( '#custom-feedback-buttom' ) ;
Original file line number Diff line number Diff line change @@ -9,13 +9,10 @@ const feedback = feedbackIntegration({
9
9
window . Sentry = Sentry ;
10
10
window . feedback = feedback ;
11
11
12
-
13
12
Sentry . init ( {
14
13
dsn :
'https://[email protected] /1337' ,
15
14
debug : true ,
16
- integrations : [
17
- feedback ,
18
- ] ,
15
+ integrations : [ feedback ] ,
19
16
} ) ;
20
17
21
18
// This should log an error!
You can’t perform that action at this time.
0 commit comments