Capacitor solution for Cordova's js-module in plugin.xml

Hi,
I’m migrating a Cordova plugin into a Capacitor plugin.
In my Cordova plugin I used to have a js-module in the plugin.xml that inserted my script into each page.

How can I do the same thing in Capacitor?

Thanks