-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(aws-cdk-lib): improve loading time for monopackage library #18036
Copy link
Copy link
Closed
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packageclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.This issue was automatically closed because it hadn't received any attention in a while.effort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p1
Description
The loading time of the aws-cdk-lib library is quite bad, encouraging import styles that will avoid loading the entire library (or saddling people who don't know JS very well with poor performance).
2 things we should be doing to the aws-cdk-lib build:
- Bundle and minify each submodule, to reduce the amount of files loaded and amount of characters scanned
- The above will only help
noderuntime performance, nottsccompilation performance. We would need to do the same to the.d.tsfiles in order to help the TypeScript compiler along as well.
- The above will only help
- Extract sourcemaps out into their own files
- This will reduce amount of bytes scanned on each load operation
- This probably doesn't require an action: it will probably come for free from doing the previous step
Framework Version
2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packageclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.This issue was automatically closed because it hadn't received any attention in a while.effort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p1