Skip to content

DX: Zip only production relevant node_modules to decrease bundle size #2709

@ZauberNerd

Description

@ZauberNerd

This is a Feature Proposal

Description

At the moment everything inside node_modules is being zipped and uploaded to s3.
If we would create a plugin for zipping the service (to not only be dependent on node.js), we could leverage npm (or at least their ls algorithm) to find a list of only the production dependencies (even with npm@3 and their flat directory structure).
npm ls --production --parseable creates exactly this - a list of all dependencies and their transient dependencies, that are declared through the package.json's dependencies (excluding devDependencies).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions