Skip to content

Commit bc377f2

Browse files
committed
Fix by using writeBundle
1 parent ae807c6 commit bc377f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/bundler-plugin-core/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export function sentryUnpluginFactory({
332332
plugins.push(
333333
fileDeletionPlugin({
334334
deleteFilesUpForDeletion,
335-
handleRecoverableError: handleRecoverableError,
335+
handleRecoverableError,
336336
sentryHub,
337337
sentryClient,
338338
})

packages/bundler-plugin-core/src/plugins/sourcemap-deletion.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function fileDeletionPlugin({
1717
}: FileDeletionPlugin): UnpluginOptions {
1818
return {
1919
name: "sentry-file-deletion-plugin",
20-
async buildEnd() {
20+
async writeBundle() {
2121
try {
2222
await deleteFilesUpForDeletion();
2323
} catch (e) {

0 commit comments

Comments
 (0)