Open LukasHirt opened 4 years ago
Possible solution - use import.meta.url
which returns URL where the module is located and access assets with that URL. This is not supported in Edge. Seems that polyfill already exists though https://www.npmjs.com/package/es-module-shims
So the next tasks are:
Using import.meta.url might have become much easier as we're switching to native modules in https://github.com/owncloud/web/pull/7952
Is this issue still relevant given the progress that has been achieved in the overall project and extension system?
import.meta.url
can be used as @LukasHirt pointed out.
At the moment we load only the js bundle of extension. We need to be able to also load assets in case there are any (e. g. images)