Skip to content

Stop copying dependencies and add them directly into zip file instead #260

Open
@antoinegomez

Description

@antoinegomez

After seeing the performance of this plugin degrading I investigated and found out that dependencies where copied during packaging.

This takes ages to complete. Normal packaging of project takes a bit less than 1 minute. Then with more dependencies added it goes up to 6 minutes.

Went to see how serverless-esbuild was managing it and they just don't copy and add files directly to the zip. Which makes sense. Why copying around node_modules?

See: https://github.com/floydspace/serverless-esbuild/blob/8a1dcc02c49574c0b04df084a3b79049b4e8e25f/src/pack.ts#L197

If I have the green light from authors I can work on this and create PR to address this problem.

Originally posted by @antoinegomez in #175 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions