Skip to content

fix: avoid errors when files are removed during build#2343

Open
howlettt wants to merge 1 commit intowxt-dev:mainfrom
howlettt:printFileList
Open

fix: avoid errors when files are removed during build#2343
howlettt wants to merge 1 commit intowxt-dev:mainfrom
howlettt:printFileList

Conversation

@howlettt
Copy link
Copy Markdown
Contributor

@howlettt howlettt commented May 9, 2026

Overview

Added a try catch around the lstat call in printFileList to avoid the build failing when files are deleted during the build

Manual Testing

Tested a build of the new package using the @sentry/vite-plugin with the filesToDeleteAfterUpload option. You can see the new warnings & missing file sizes for the map files in the screenshot below

{3B7A6420-5ABA-49A3-90ED-951A31049DFE}

Related Issue

This PR closes #1735

@howlettt howlettt requested a review from aklinker1 as a code owner May 9, 2026 04:26
@netlify
Copy link
Copy Markdown

netlify Bot commented May 9, 2026

Deploy Preview for creative-fairy-df92c4 failed.

Name Link
🔨 Latest commit 52d6003
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/69feb77bd1a56a00087fbb1c

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

printFileList causes the build to fail if files are deleted before it runs

1 participant