skypackjs / skypack-cdn

An issue tracker for the CDN
107 stars 5 forks source link

process is undefined (trying to load env vars) #266

Open YousefED opened 2 years ago

YousefED commented 2 years ago

The following package breaks to load in browser: https://cdn.skypack.dev/-/@use-gesture/core@v10.2.5-7ZXBtdh5uqIGln61Ak20/dist=es2019,mode=imports/unoptimized/dist/actions-e68631bd.esm.js

at the following line: if (process.env.NODE_ENV === "development") {

because "process" is undefined (it's being loaded indirectly as a dependency of https://cdn.skypack.dev/@tldraw/core)