From ea3e2ea2f01d46e7bda559d2b87cb26e93b8b2ae Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 11 Aug 2022 16:33:51 -0400 Subject: [PATCH] Expose core as an export Currently if you use anything from `aws-cdk-lib` it causes node to travese this entire package and evaluate every single file which is notiicbly slow. Exposing core will alleviate this for situations where you're just importing things like `App` or `Duration` --- packages/aws-cdk-lib/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/aws-cdk-lib/package.json b/packages/aws-cdk-lib/package.json index 61cb568c84b00..b2811efe736f0 100644 --- a/packages/aws-cdk-lib/package.json +++ b/packages/aws-cdk-lib/package.json @@ -612,6 +612,7 @@ "./aws-xray": "./aws-xray/index.js", "./cloud-assembly-schema": "./cloud-assembly-schema/index.js", "./cloudformation-include": "./cloudformation-include/index.js", + "./core": "./core/index.js", "./core/lib/helpers-internal": "./core/lib/helpers-internal/index.js", "./custom-resources": "./custom-resources/index.js", "./cx-api": "./cx-api/index.js",