-
Notifications
You must be signed in to change notification settings - Fork 67
Stop shipping TypeScript #391
Comments
Internal note: dropping from current sprint |
@divyenduz: Investigate a bit what this means for platforms. |
This only affects AWS lambda deployments using the AWS CLI and manual packaging. All major platforms like zeit, netlify, heroku do not bundle the dev dependencies and hence, do not include typescript in their bundle. |
@divyenduz to my knowledge both heroku and netlify will ship TypeScript due to their algorithm. (Note that TypeScript is also part of the @prisma/client bundle) |
Heroku, netlify, zeit, serverless framework all platforms are able to remove typescript and Prisma CLI dependencies from E2E tests can serve as the reproductions (with adjustment of running This means that AWS CLI is the only tool which doesn't make the bundle optimized for its size. However, since Prisma client is really large in size, it is easy to hit these limits in any platform. Which is why I recommend taking this one up before the release. I was trying to deploy a Prisma project with a Lambda layer (ffmpeg, 40MB) and I hit this limit. I assume for any large projects the limit will be hit. I could get around it by thinning my layer and pre, post deploy hooks like this: |
Thanks a lot for reporting 🙏 In case it’s not fixed for you - please let us know and we’ll reopen this issue! |
As of now Photon.js uses TypeScript in its generation process.
By directly generating the right files, we can get rid of the TypeScript dependency. That will greatly improve performance and bundle size.
Related: #388
Related: #7
The text was updated successfully, but these errors were encountered: