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
Copy file name to clipboardExpand all lines: packages/bundler-plugin-core/src/index.ts
+5-1
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,11 @@ export function sentryUnpluginFactory({
85
85
);
86
86
// NOTE: Do not use the dotenv.config API directly to read the dotenv file! For some ungodly reason, it falls back to reading `${process.cwd()}/.env` which is absolutely not what we want.
87
87
constdotenvResult=dotenv.parse(dotenvFile);
88
-
process.env={ ...process.env, ...dotenvResult};
88
+
89
+
// Vite has a bug/behaviour where spreading into process.env will cause it to crash
0 commit comments