Skip to content

Reduce size of install #1994

@jimfleming

Description

@jimfleming

Is your feature request related to a problem? Please describe.

A clean install of just two v3 SDK dependencies generates a 200MB node_modules folder.
Screen Shot 2021-02-02 at 10 50 41 AM

Minimal package.json:

{
  "dependencies": {
    "@aws-sdk/client-dynamodb": "^3.4.1",
    "@aws-sdk/util-dynamodb": "^3.4.1"
  }
}

Run npm install.

Describe the solution you'd like

Much smaller builds for lambdas. As is, we're just under the 250MB S3 upload limit for lambdas.

Additional context

Screenshot attached of the size breakdown from dust. It looks like the bulk of the install is coming from react-native and android.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or enhancement. May require GitHub community feedback.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions