App crashing on web after installing Capacitor splash-screen plugin

After Installing the capacitor spash-screen plugin, I got splash screen to work on simulators, but on the web during debugging it crashes after the splash screen timeout is over. Is this a bug or am I missing some config to make it work in the web?

The error I am getting is

Uncaught ReferenceError: process is not defined

My guess why it’s failing is that the splash-screen plugin object is not able to find splashscreen.hide() object on the web. Is there a way to fix this?

Are you using Ionic too? If so, you could only run the code if isPlatform('capacitor'). - reference (pick whatever JS framework you are using).

You could also use the @capacitor/device plugin to determine the platform with getInfo and the platform prop.