Hello, is there any solution to the performance is...
# typescript
g
Hello, is there any solution to the performance issues with
@pulumi/azure-native
?
The performance we deliver is expected given the size of @pulumi/azure-native. They need to find a way to pull in fewer than two million lines of type definitions given a single deep import.
https://github.com/microsoft/TypeScript/issues/50809#issuecomment-1261218807
l
I thought this had already been partially resolved? I feel confident that I read a release announcement about this. I think you can now import much smaller chunks of definitions.
g
I doubt it, https://github.com/pulumi/pulumi-azure-native/issues/3422 But I adjusted imports and it gave me a little bit, however, the second I got rid off the lib it was very noticeable. So for now I will keep it in a separate project.
l
What happens if you import from just the subdirectories, rather than "@pulumi/azure-native"?
g
it is slightly better