Working with external assets in Propshaft

I’m trying to find a way to get external assets to work with Propshaft and importmaps. Two cases where I’ve run into issues are when trying to use Leaflet (marker icons) and Shoelace (icons). When using Propshaft, the paths to these external assets get modified so the app tries to load them from the root path of the app instead of the external URL they should be loaded from. I have been able to work around this issue by putting files in my public folder, but I feel like there should be a more “official” and “correct” way to tell Propshaft to ignore the paths for some external assets. I’ve seen a workaround when using NPM packages that involves loading assets from node_modules, but I’d like to stick to using importmaps which means that solution doesn’t work.

Is there a way to allow libraries to load assets they need from external sources when using Propshaft and importmaps?