-
-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix MSP Radio emulator in PWA #3939
Conversation
✅ Deploy Preview for origin-betaflight-app ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This comment has been minimized.
This comment has been minimized.
Added a new commit that fixes the issue with the "build" version of PWA. Now works, but maybe my solution is not good enough, but we can make it better with the reviews. I let it in two commits, to see the difference of what's needed for Vite dev and what is needed for Vite build. |
Quality Gate passedIssues Measures |
Do you want to test this code? Here you have an automated build: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is not need really to rename this if we specify the input with rollupOptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really a tab - could we rename it to /receiver_msp.html
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried but it didn't work. My first idea was to add it as subfolder inside the tabs one, and without renaming it, but it didn't work. Maybe I did something wrong, but I didn't found the problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@haslinghuis it seems now it works, I don't know why yesterday don't. I will push a new PR renaming it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really a tab - could we rename it to /receiver_msp.html
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible have something to do with the rollupOptions
used in Vite
* Fix MSP Radio emulator in PWA * Fix MSP Radio Emulator for PWA build
This makes working again the MSP radio emulator under PWA.
With this changes, it works under PWA and under NW.js.
BUT I've marked it as draft because under PWA only works with
yarn dev
but not underyarn review
. I suspect it has something to do with https://vitejs.dev/guide/build#multi-page-app but I'm not sure. I tried to add this config to the code without luck. Some idea?