Reduce drizzle dist folder for serverless (Deno deploy)
Hi, I'm using Drizzle on Deno Deploy and it's working great in terms of library!
But the size of the
drizzle-orm
dist is about 5.3 MB, which is too big and bad for cold boot in deno deploy!
In my case, I have a project where I'm experiencing 2-4 second cold starts because the biggest dependency I have is now drizze-orm. Without it, I have 200 - 400ms cold start.
My current dependencies are:
- drizzle-orm: 5.3 MB
- ramda: 870Kb
In the case of drizze, I noticed that the largest folders are: pg-core
1MB and mysql-core
1.2MB. I'm not using sqlite, expo, aws, mysql, best-sqlt etc... I would like to know if there is an option to externalize these folders as external dependencies or if I can ignore these folders in the download to have a smaller node_modules size?0 Replies