-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger UtilityThis item relates to the Logger Utility
Milestone
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
michaelbrewer
Metadata
Metadata
Assignees
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger UtilityThis item relates to the Logger Utility