-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[v2, dev] Use custom schemes for in-app dev mode #2610
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
Conversation
Deploying with
|
Latest commit: |
182bf09
|
Status: | ✅ Deploy successful! |
Preview URL: | https://2f489165.wails.pages.dev |
Branch Preview URL: | https://feature-dev-mode-custom-sche.wails.pages.dev |
This is great! Perhaps we should link the tickets we believe will be fixed by this? |
Do you think using the old URL for Vite < 3 would be reasonable? It'd mean it wouldn't break compatibility but we could spam the terminal with all the benefits of upgrading to v3? |
Yeah that's a good idea. |
This would need some more if-cases so theoretically it's feasible. I'm not sure if that would give a better experience for the developer. In the current version of the PR it's clear that when upgrading to the next release there's a breaking change and the user needs to update vite. Otherwise it would still work as in older releases and would then introduce the breaking change just by the means of updating vite to a newer version. |
I've update the initial comment to list issues that I've found relating to such inconsistencies. |
@leaanthony I've marked the PR ready for review, let me know how you would like to proceed with it. |
I think if it's not a huge problem, we should use the default behaviour if vite < 3 but issue a large warning about it. I think this will be a small minority because v3 has been standard in v2 for a while, however if their projects just fail to work then that would be a bad experience. There may be some weird reason they can't upgrade or perhaps they are using a remote template. I'm happy to do that work if you're done with it 😅 |
Ok, will do that. Unfortunately we still had some old vite v2 in our templates. 😞 |
7987c1b
to
25e0755
Compare
@leaanthony PR has been updated |
I remember from the first commit (can't get to it after force push) that |
Didn't change anything there, it's still being read here |
That is so weird! I wonder if it was a gui issue with a small window as I can see it just fine on desktop... 🤯 |
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.
Thanks so much for adding in the legacy support 🙏 This feature should help a lot.
This fixes some long-standing inconsistencies between dev mode builds and production builds but is a breaking change. Dev mode uses custom scheme for Vite versions >= 3.0.0 and for older it still behaves in the old way.
25e0755
to
182bf09
Compare
You're welcome. I hope this will get us rid of all those "working in development, not working in production" tickets. |
This fixes some long-standing inconsistencies between dev mode builds and production builds but is a breaking change. Dev mode uses custom scheme for Vite versions >= 3.0.0 and for older it still behaves in the old way.
This fixes some long-standing inconsistencies between dev mode builds and production builds but is a breaking change. Dev mode uses custom scheme for Vite versions >= 3.0.0 and for older it still behaves in the old way.
Relates to