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
Some bundlers automatically polyfills global Buffer and process if they can detect it being used.
it really bugs me soooo much.
trying to import this via a cdn like: https://esm.sh/browser-or-node
is going to import both node:process and node:events. just for using process in the code.
i think if you use isNode = globalThis.process?.versions?.node then, you will be fine.
The text was updated successfully, but these errors were encountered:
Some bundlers automatically polyfills global
Buffer
andprocess
if they can detect it being used.it really bugs me soooo much.
trying to import this via a cdn like: https://esm.sh/browser-or-node
is going to import both
node:process
andnode:events
. just for usingprocess
in the code.i think if you use
isNode = globalThis.process?.versions?.node
then, you will be fine.The text was updated successfully, but these errors were encountered: