File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ module.exports = {
36
36
} ,
37
37
includeAppVersion : true ,
38
38
deleteSourcemaps : true ,
39
- overwrite : true
39
+ overwrite : true ,
40
+ uploadMinifiedFile : false
40
41
} ,
41
42
42
43
requiredConfig : [ 'apiKey' , 'publicUrl' ] ,
@@ -50,6 +51,7 @@ module.exports = {
50
51
let publicUrl = this . readConfig ( 'publicUrl' ) ;
51
52
let overwrite = this . readConfig ( 'overwrite' ) ;
52
53
let includeAppVersion = this . readConfig ( 'includeAppVersion' ) ;
54
+ let uploadMinifiedFile = this . readConfig ( 'uploadMinifiedFile' ) ;
53
55
54
56
log ( 'Uploading sourcemaps to bugsnag' , { verbose : true } ) ;
55
57
@@ -64,6 +66,12 @@ module.exports = {
64
66
sourceMap : this . _readSourceMap ( path . join ( distDir , mapFilePath ) )
65
67
} ;
66
68
69
+ if ( uploadMinifiedFile ) {
70
+ formData . minifiedFile = this . _readSourceMap (
71
+ path . join ( distDir , jsFilePath )
72
+ ) ;
73
+ }
74
+
67
75
// the presence of any value for this flag causes the API to interpret it as
68
76
// true, so only add it to the payload if it is truthy
69
77
if ( overwrite ) {
You can’t perform that action at this time.
0 commit comments