medikoo / serverless-plugin-reducer

Serverless plugin: Reduce Node.js lambda package so it contains only lambda dependencies
ISC License
14 stars 5 forks source link

Further optimize dependencies resolution #2

Open medikoo opened 6 years ago

medikoo commented 6 years ago

Currently resolution for each function doesn't take advantage of fact that dependencies for some module might have been already resolved in previous function call. That may require some updates in cjs-module package, to share stats cache among calls.

Additionally it'll be good to optimize package.json detection and do not check same folders twice