getsentry / sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
https://sentry.io
BSD 3-Clause "New" or "Revised" License
142 stars 37 forks source link

fix(core): Stop .env files from being picked up #486

Closed lforst closed 9 months ago

lforst commented 9 months ago

For some reason dotenv is falling back to reading the local .env file when the file you actually wanted to read is not present. Obviously this is not what we want so instead we just read it ourselves and just use dotenv to parse it for us.

Fixes https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/484