Environment
Latest vite plugin, latest @sentry/vite-plugin. Happens on older versions too
Steps to Reproduce
- Clone https://github.com/ethanlaj/vite-sentry-plugin-issue
- Delete
.git directory from the cloned folder
- Run
npm install
- Run
npm run preview
Expected Result
A fatal error would not be logged into the console when the git repository isn't available. This is needed for monorepos that don't have git repositories initialized in the child directories (and Docker environments)
Actual Result
fatal: not a git repository (or any of the parent directories): .git - is logged to the console