terraform-cdk icon indicating copy to clipboard operation
terraform-cdk copied to clipboard

Remove source maps from providers

Open pauldraper opened this issue 2 years ago • 1 comments

Description

The @cdktf/provider-aws package is 342MB.

Removing the inline source maps would reduce that by ~35%.


References

No response

Help Wanted

  • [ ] I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

pauldraper avatar Oct 06 '23 17:10 pauldraper

We added the source maps a while back on request of a user wo wanted to improve the jump to definition experience during development. I can see that the size is quite big but so is the underlying provider. By using specific imports one can reduce the compile time, so this improvement would most likely be only affecting the raw size of the package.

I can see the size being an annoyance but the missing source maps would be one as well, therefore we are awaiting evidence here that this is a worthwhile investment.

DanielMSchmidt avatar Dec 18 '23 10:12 DanielMSchmidt