FormidableLabs / serverless-jetpack

A faster JavaScript packager for Serverless applications.
MIT License
277 stars 21 forks source link

Serverless 3 Umbrella #292

Open ryan-roemer opened 2 years ago

ryan-roemer commented 2 years ago

Plan

Tasks

jeanbmar commented 2 years ago

Hey @ryan-roemer, you might want to have a look at this https://github.com/npm/cli/pull/4082 if you plan to change packaging in the future. I'm using for non-serverless projects and its pretty good. Hopefully it will land in npm. Btw love this tool thanks!

ryan-roemer commented 2 years ago

@jeanbmar Cool! that's an option if we keep legacy mode as a potential replacement for our inspectdep library if it's faster.

Either approach is going to likely be slower and definitely produce large bundles than Jetpacks trace mode -- out of curiosity, have you tried trace mode for faster, smaller Lambda bundles?

jeanbmar commented 2 years ago

I haven't tried it, at least not yet. I was worried of possible subtile side-effects at the time I looked at it so I just went with the default packaging :).

jeanbmar commented 2 years ago

Hey @ryan-roemer, you might want to have a look at this npm/cli#4082 if you plan to change packaging in the future. I'm using for non-serverless projects and its pretty good. Hopefully it will land in npm. Btw love this tool thanks!

In addition, it would solve collapsed dependencies issues since npm copy installs conflicting dependencies in the right subdirectories.