Hey team, I am on a typescript compilation speed i...
# typescript
c
Hey team, I am on a typescript compilation speed investigation again and there are some small things which could really make a huge difference to Pulumi projects if people wanted opt in once the underlying issues were fixed. Is anyone from the team interested in working with me to get these sorted? https://github.com/pulumi/pulumi-aws/issues/772 and https://github.com/pulumi/pulumi-aws/pull/1015 are key PRs to this happening. I fixed the issues in the AWS sdk ages ago so deep imports now really speed up compilation there. But because Pulumi imports the aws-sdk I can’t get any of those benefits in projects which use Pulumi
As an example of the kinda of improvements you could get. I have a simple project which creates a lambda and a permission. Commenting out
const sdk: typeof import("aws-sdk");
in awsMixins.d.ts reduces this projects compilation time from 7seconds to 3 seconds on my machine. There are some other pretty big wins too. If I apply the fixes from 772 as well (with some updates) it drops it to ~1.7 seconds.
b
Hey Jake, so you know we're aware, I posed this in our internal slack
c
Cheers @brave-planet-10645!