I am having issues importing a local file in an addon, for example in it's 'instance.js' during preview. (e.g. import * as Api from './api.js') - I know that preview mangles file names to blobs, but I thought there was a service worker which helped to make it compatible. Right now it cannot find the file.
Anyone else do 'import's in addons?
My workaround for now is importing from a full URL/CDN (which requires an online connection and is slower.)
e.g. this works fine:
import * as Comlink from "https://kindeyegames.com/forumfiles/comlink.js";