Fix webpack usage
webpack-node-externals
may be excluding more than necessary from the bundle and forcing a npm install
in the deployment environment. Look into webpack's configuration of externalsPresets
(https://webpack.js.org/configuration/externals/#externalspresets) with the node
target, then test local deployment to a directory above the development directory (so it doesn't catch the node_modules
folder there).