Open ryan-roemer opened 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!
@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?
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 :).
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.
Plan
trace-pkg
inspectdep
/ legacy mode altogether (or ticket for later re-introduction)Tasks