Files
terencechoandClaude Opus 4.8 f98b8ead37 fix(studio): guard import.meta.env reads so the player survives non-Vite ESM hosts (#3948)
In non-Vite ESM hosts, import.meta.env is undefined and direct reads crash at module load.

Guard both player reads with optional chaining. Existing Vite defaults are unchanged.

Reject future unguarded import.meta.env property access in either module.

— tai

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-14 23:40:48 +00:00
..