Why is my package too big? (over 800mb)

I recently migrated my source code to typescript, but now using typescript my final unzipped package gets over 800mb! I am using serverless v4.

You can look at using some of the esbuild options to help reduce the size of the package: Function Build Configuration