TanStackT
TanStack13mo ago
7 replies
ugliest-pink

Debugging of accidental server code in the client-bundle?

Is there any plan to support a better debugging experience in cases where server side code is accidently included in the client bundle? Right now, I see errors like Buffer is not defined but the stacktrace does not reveal anything about where it's actually imported/used. Not sure if it's even possible to make it easier...

Also, is something like .server.ts planned? Making sure none of the files exports are included in the client bundle?
Was this page helpful?