What packages to put in webpack externals


I’m using electron, webpack and react. I bundle the renderer file with webpack and some packages need to be placed in externals in order to work with electron.

The question is - what packages should go to externals as I can list all packages there and all of them would work?