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
importprocessfrom'node:process';constESC='\u001B[';constOSC='\u001B]';constBEL='\u0007';constSEP=';';/* global window */constisBrowser=typeofwindow!=='undefined'&&typeofwindow.document!=='undefined';constisTerminalApp=!isBrowser&&process.env.TERM_PROGRAM==='Apple_Terminal';constisWindows=!isBrowser&&process.platform==='win32';constcwdFunction=isBrowser ? ()=>{thrownewError('`process.cwd()` only works in Node.js, not the browser.');} : process.cwd;constansiEscapes={};// and so on...
Compiled output in browser:
constESC='\u001B[';constOSC='\u001B]';constBEL='\u0007';constSEP=';';constisTerminalApp=process.env.TERM_PROGRAM==='Apple_Terminal';constansiEscapes={};// and so on...
I'm guessing that the inBrowser check on line 9 probably isn't suitable for detecting a bundler like Vite
(or perhaps I have something set up wrong...)
The text was updated successfully, but these errors were encountered:
process.env
calls don't compile under Vite, so it's odd to see it in the compiled code:From uncompiled index.js
Compiled output in browser:
I'm guessing that the
inBrowser
check on line 9 probably isn't suitable for detecting a bundler like Vite(or perhaps I have something set up wrong...)
The text was updated successfully, but these errors were encountered: