Re:pnpm: Fast, disk space efficient package manager for Java...
by 14u2c on Tuesday April 05, 2022 @07:11PM
(#30926342)
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.
Re:pnpm: Fast, disk space efficient package manager for Java...
by Aeolun on Wednesday April 06, 2022 @12:11AM
(#30928368)
You 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.
Re:pnpm: Fast, disk space efficient package manager for Java...
by djbusby on Tuesday April 05, 2022 @07:52PM
(#30926666)
Or left-pad or that other one. JS ecosystem seems dangerous to no version pin, pack and maybe self-host the needed+known-good modules
Re:pnpm: Fast, disk space efficient package manager for Java...
by pragmatic on Tuesday April 05, 2022 @09:36PM
(#30927433)
Is this a thing? A buddy started at a new place and he was noticing webpack bundling for the backend.
Makes sense when you think about it I guess. Only used bundlers for front end stuff.
Re:pnpm: Fast, disk space efficient package manager for Java...
by adamparsons on Wednesday April 06, 2022 @12:19AM
(#30928433)
If backend services are written in TS (instead of JS) then you'll need to compile to run it. Be that TSC or webpack with ts-loader, you'll need something to perform that step. I don't think anyone is running ts-node outside of local dev environments.
Re:pnpm: Fast, disk space efficient package manager for Java...
by qudat on Tuesday April 05, 2022 @11:43PM
(#30928243)
If you want typescript on the BE then you at least need a build step.
Re:pnpm: Fast, disk space efficient package manager for Java...
by geoffmanning on Tuesday April 05, 2022 @10:45PM
(#30927915)
I'm just now finding that webpack is mostly a foreign concept in backend nodejs tech, but it's mind boggling to me that the norm was to ship code with the node_modules folder instead of bundling and minifying. Seriously, why? It's so wasteful... :'(
Booting a serverless function with 100s of mbs of modules takes an appreciable time - to the point where some folks webpack bundle their serverless code