Closed
Description
Bug description
The current bundle size of the Logger library is unnecessarily big. This has an impact on the performance of the Lambda functions (cold starts included).
Expected Behavior
The node_modules folder has a reasonable size.
Current Behavior
The node_modules folder is 139M.
Possible Solution
One of the biggest reasons is the lodash library that is currently a prod dependency, which is unnecessary.
It would also be good to double check whether we publish the NPM packages installing only the prod dependencies and not the dev dependencies.
Steps to Reproduce
Install the library in your local env, and check the node_modules folder size:
du -sh *
139M node_modules
436K package-lock.json
4.0K package.json
Environment
- Powertools version used: latest
- Packaging format (Layers, npm): NPM
- AWS Lambda function runtime: all
- Debugging logs: N/A
Related issues, RFCs
N/A