schau mal hier https://docs.shopware.com/en/shopware-platform-dev-en/how-to/js-storefront-plugin . Dort wird in main.js die Resourcen nur geladen/regisrtiert. Der Code ist jeweils in den Dateien selbst, aber nicht in main.js. Beispiel: https://github.com/shopwareLabs/SwagPayPal/blob/master/src/Resources/app/storefront/src/main.js