The URL() constructor or the {{domxref("URL.parse_static", "URL.parse()")}} static method of the URL API can be used to resolve a relative reference and a base URL to an absolute URL. Both methods ...
I use “yarn link” to link the component package that is being developed locally (the code of the component package has a relative reference to the image resource ...