You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is allowed to fail - we just don't do anything
206
+
logger.debug(
207
+
`An error occurred while attempting to delete asset: ${filePathToDelete}`,
208
+
e
209
+
);
210
+
})
211
+
)
212
+
);
213
+
}
214
+
}
215
+
187
216
if(options.bundleSizeOptimizations){
188
217
const{ bundleSizeOptimizations }=options;
189
218
constreplacementValues: SentrySDKBuildFlags={};
@@ -297,12 +326,22 @@ export function sentryUnpluginFactory({
297
326
vcsRemote: options.release.vcsRemote,
298
327
headers: options.headers,
299
328
},
329
+
deleteFilesUpForDeletion,
300
330
})
301
331
);
302
332
}
303
333
304
334
plugins.push(debugIdInjectionPlugin(logger));
305
335
336
+
plugins.push(
337
+
fileDeletionPlugin({
338
+
deleteFilesUpForDeletion,
339
+
handleRecoverableError,
340
+
sentryHub,
341
+
sentryClient,
342
+
})
343
+
);
344
+
306
345
if(!options.authToken){
307
346
logger.warn(
308
347
"No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/"
@@ -321,9 +360,7 @@ export function sentryUnpluginFactory({
0 commit comments