So I'm using Shadow Drive (and Anchor JS) with SvelteKit and with both packages, I'm getting a process is not defined error I think because both packages use process, a server-side feature, that somehow gets triggered on import into a regular typescript file. I think this is because SvelteKit uses Vite. I saw in the Anchor issues section, one person solved the Anchor issue by using...
define: { 'process.env.ANCHOR_BROWSER': true },
...in the vite.config.js file. This works! I was wondering if anyone knows what process.env to pass in for ShadowDrive?


So I'm using Shadow Drive (and Anchor JS) with SvelteKit and with both packages, I'm getting a process is not defined error I think because both packages use process, a server-side feature, that somehow gets triggered on import into a regular typescript file. I think this is because SvelteKit uses Vite. I saw in the Anchor issues section, one person solved the Anchor issue by using...
define: { 'process.env.ANCHOR_BROWSER': true },...in the vite.config.js file. This works! I was wondering if anyone knows what process.env to pass in for ShadowDrive?