When showing a webpack4-packaged project in Electron’s webview, an error xxx.split() is undefined occurs, causing the webview to display a blank page. The root cause is that the pbkdf2 package which is depended by webpack has an error code that is not compatible with Electron’s Node environment.
Root Cause
Electron application throws an error xxx.split() is undefined when loading a webpack4-packaged project in Electron’s webview. It is because webpack@4 is dependent on pbkdf2 package which is used for encryption and decryption. It referred like below: