However, this is not working. I'm getting this error in the server: An unhandled error occured: TypeError: vite_ssr_import_1.postHandlers is not iterable (cannot read property undefined) at eval (/src/mocks/browser/browser.ts:7:39) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async instantiateModule (file:///solidstart/nodemodules/.pnpm/vite@4.2.1@types+node@18.15.11/node_modules/vite/dist/node/chunks/dep-79892de8.js:53996:9)
And in the browser I'm getting this error: browser.ts:5 Uncaught (in promise) ReferenceError: Cannot access 'postHandlers' before initialization
I asked in vitejs github repository on how exclude code for production but unfortunately nobody answered my question. so I ask my question here so hopefully somebody maybe has answer to my question...