it would be fantastic if building web app over C in high level syntax
Is there a fix for this? it happens randomly with high probability which makes the automation nearly unusable..
also if I use typescript for the custom service worker file, the dev mode will be broken: it seems the file is not passed to vite to transpile, which means...
@userquin I have created a minimal reproduction repo: https://github.com/nodegin/vite-pwa-reprod I tried build, it does not respect vite plugin as well during build. Alias seem working but not a ideal solution...
@userquin Sorry for late reply. I just tested again earlier, and still can't get it working in my real project. After adding the `defaultInjectManifestVitePlugins` it seems the alias is working...
@userquin I didn't use React in SW. The problem is, `@repro/library` contains both the code I need to use in SW, while also in my core application, it seem this...
But the problem is, if you comment the `@vitejs/plugin-react` plugin it will work, even it still contains React code. Also, in the real project the sw.js is migrated from webpack,...
Splitting is not a solution to us since our app is on production, splitting it basically mean we have to rewrite the whole app and the logics.
@userquin but I think it is still an issue, ideally even if it contains React code, it should not affect the vite to compile the code? since the sw only...
@userquin running the dev mode with plugin-react is not working, the service worker would be invalid, you can try my reproduction repo