I'm following the tutorial for deploying a cloudflare worker with prisma https://www.prisma.io/docs/guides/deployment/deployment-guides/deploying-to-cloudflare-workers#10-develop-the-cloudflare-worker-function
However in the end when they do
npx wrangler dev and everything is supposed to be working I get a bunch of errors
Module not found: Error: Can't resolve 'tls'
Module not found: Error: Can't resolve 'net'
Module not found: Error: Can't resolve 'fs'
Module not found: Error: Can't resolve 'child_process'
etc
I understand it happens due to webpack target webworker, but what should I do with it? Tried to mark them as external and couple of other things to ignore errors, but it does look like these things are actually required by the prisma client.
What's the proper way to polyfill dependencies or deal with these errors?