Cannot exclude an external package from server bundle file
Hello humans. It's been 2 days now that I am struggling with this issue of not being able to exclude
@supabase/supabase-js
and its dependancies from the final server.js
file. I am using Cloudflare workers solid adapter. I've tried all possible combinations to mark the library as external with no luck. Here is my vite.ts file.
Built server.js
has traces of supabase being bundles into the file and also its dependecies as well.
I need to end up with server simply having depencies imported as:
Any help would be greatly appreciated.1 Reply
It's probably worth mentioning that I am using typescript and there is a tsconfig.json file with the following configs: