Electron Forge Webpack Externals

How can you use tthe plugin @electron-forge/plugin-webpack without it bundling every module? The modules that I import in the main process do not support being bundled with webpack. I saw the module webpack-node-externals but it does not include the modules in a node_modules folder.