Skip to content

Feature request: reduce npm_modules size  #419

Closed
@saragerion

Description

@saragerion

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

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger Utility

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions