aws-cdk-lib: incremental build takes a few minutes every time #25255
Labels
aws-cdk-lib
Related to the aws-cdk-lib package
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
As a CDK contributor, when using
yarn watch
in theaws-cdk-lib
directory, it takes about 3 minutes to build ts files incrementally, resulting in bad developer experience.Please let us know if there are better ways other than
yarn watch
for faster development iteration (write->build->test) 😃Expected Behavior
Incremental build should finish in a few seconds, which was achieved in the previous package structure.
Current Behavior
Incremental build takes a few minutes.
Reproduction Steps
Possible Solution
I'm not sure why it is so slow yet. Just creating this issue for visibility.
Maybe the package is just very large and we need to split it into multiple ones (like the previous structure). c.f. tsc doc.
Or maybe we can use faster compiler (without type check) like esbuild as an alternative for local development.
Additional Information/Context
yarn watch on
framework-integ
also takes 10 to 20 seconds on every incremental build. It is acceptable for now but will possibly raise a similar problem in the future.CDK CLI Version
2.76.0
Framework Version
No response
Node.js Version
v18.13.0
OS
macOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: