How to import Capacitor plugins in vanilla JS

I created a bare bone F7 project without a bundler. Now I am trying to get capacitor plugins to work. For example access the Splashscreen like this

import { SplashScreen } from '@capacitor/splash-screen';

// Hide the splash (you should do this on app launch)
await SplashScreen.hide();

How do I rewrite the import statement in order to use the Capacitor plugin?

did you resolve this?
i cannot find any documentation or similiar for this