I am using webpack to bundle a number of back-end scripts into a single file during my deployment process.
When connecting to the MongoDB database there is an option
I you use the webpack-node-externals package, you can also do this:
const nodeExternals = require("webpack-node-externals") ... const webpackConfig = { ... externals: [nodeExternals({ allowlist: ['saslprep'] })], ... }