4 ms·
Are people actually downloading dependencies on the fly like this? IMO a bundler is absolutely essential. What if npm is down? What if the version of a dependen
by 14u2c 5y ago
Are people actually downloading dependencies on the fly like this? IMO a bundler is absolutely essential. What if npm is down? What if the version of a dependency has been deleted for some reason? These are surprises you absolutely do not want when a function is starting.
- djbusby 5y agoOr left-pad or that other one. JS ecosystem seems dangerous to no version pin, pack and maybe self-host the needed+known-good modules
- Aeolun 5y agoYou don’t download the modules when your function starts. You include 500mb of dependencies in your 50kb lambda function. The difference in boot time between 50kb and 500mb is quite significant.