Daniel Nagy

Results 68 comments of Daniel Nagy

Can confirm, the service worker does not function properly when using Vite's `base` option.

I discovered there is an option in Workbox to prefix the asset URLs. The following plugin config will allow you to prefix the URLs with your base URL. ```javascript const...

@userquin I tried using Vite's `base` option and just about every combination of the HTML `` tag and absolute/relative asset paths. I can't seem to get it to work. I...

@userquin So I deployed my code to a CDN using only Vite's `base` option to test and the service worker is serving the cached assets. So I wonder if this...

I think I figured out the issue. If you omit the trailing `/` in the URL when using Vite's base option then the assets will not be served from the...

Does Firefox not support service worker scripts of type module? My tests are failing in Firefox and it seems to be because of module imports inside the service worker.

@magoniac I don't think the glob has anything to do with it. I have a dynamic import that uses a static string and the import assertion is removed by esbuild...

@tgallagher2017 It sounds like what you're looking for is a way to do pub-sub. Comlink does not have built-in mechanisms for pub-sub. I am the author of a library called...

@rejhgadellaa You should think of service workers like server-less functions when it comes to communication with the main thread. I am the author of a library called [Transporter](https://github.com/daniel-nagy/transporter) that was...

This is a bit unfortunate when using TypeScript [project references](https://www.typescriptlang.org/docs/handbook/project-references.html). In our case we have many feature modules and tests for each feature are colocated with the feature. Because of...