You may not need a bundler for your NPM library
Nice write up. It still boggles the mind when coming from a Java background how things change but also get worse.<p>Having zip&#x27;s (.jar&#x2F;.war) which had the source and compiled artefacts available and not cluttering the OS with unzip items.<p>I&#x27;ve run into huge issues dealing with deployments to AWS Lambda nodejs, where the previous developer could not work out how to make a &#x27;slip&#x27; deployment and just zipped the whole folder node_modules and all and shipped that, this included all testing tools including an entire browser exe etc. 150mb file expanded to 350mb with 300k in files. And 95%+ of it was boiler-pate to test the api endpoint logic...<p>I&#x27;ve still not come across the simplest way to have dependences on modules with testing and still be able to deploy a slim zip. There is more and more push to do container layers for the node_modules, but still many of these has 100&#x27;000 objects which are not needed causing lambda stutter(startup sleepyness).