-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Support for Vite.js #7815
Comments
Thats should be killer feature for Quasar v2. Something like this:
or
|
Quasar rely on many webpack loaders, I don't think we'll be able to support Vite soon. |
@IlCallo Thanks for the heads up for anyone who might be pondering to commit time for this. Do you think Quasar team could prepare an overview of the reliance on webpack loaders? That could save hours of detective work. |
I have been using vite quite a bit on a separate project. So far, I have around 105 pages. It takes around 11 seconds to compile those. If I kill vite and restart it, it's in the 400ms range. It's doing some caching, but it comes at a cost. Sometimes when I make a change to a source file I am debugging, the changes don't show up. Even after refreshing the browser. I mean, after refreshing the browser, I see my changes briefly, but then they revert back to the cache. And, many times, I am unable to set a breakpoint in the browser. It just won't let me. The line numbers get greyed out (disabled). So, I set a This is my biggest deterrent right now. Because of the way Vite caches your build, source maps get messed up and I can't even think of the number of times I have yelled at vite for this. In all, vite is fast, but it is still young and going through some major teething issues. I am sure Evan will get those resolved, with enough feedback. But, he's splitting his time over several high-level projects for the Vue eco-sphere, so I wouldn't expect things to be fixed sooner, than later. |
@Rackar Stay tuned. After Quasar v2 is released, we'll be tackling Webpack 5 and also looking into how we can leverage Vite (if at all possible) |
+1 to vite. So dope. Would make Quasar even better than it already is (and it's the best!). |
I subscribe. Vite.js and Quasar will be a killer combination. |
Ah, I just created a repo for this https://github.com/ekoeryanto/vite-quasar I tried last weeks integrating quasar with vite ssr with no luck. |
Vite.js support is officially scheduled. https://roadmap.quasar.dev |
great to know that, @rstoenescu. |
@yusufkandemir do you perhaps know anything about the Vite + SSR support? The Vite plugin is really nice but there's a note on the NPM page for it that says Quasar + Vite + SSR isn't supported, even though it seems to work locally: edit: commented in this thread because it's most closely related to this ticket and I can't find any mention of SSR on the roadmap you linked above |
@AlphaJuliettOmega see https://quasar.dev/start/vite-plugin
That "a new CLI for Quasar based on Vite.js instead of Webpack" mentioned in my previous comment got released( |
Will the Vite plugin be able to SSR or this will only be possible through the CLI? I'm using Laravel with Inertia.js, which has it's on SSR server and I'm just using the Quasar UI Components... |
You would ask to the InertiaJS guys if them supports Vite + SSR. |
Since inertia doesn't work with vue-router... #10519 (see last comment) |
Yes, since Vite is the default bundler for Laravel now, it works just fine with Inertia.js. By the way, Laravel starter kits like Breeze and Jetstream are already running Inertia.js with SSR like a charm.
Well, what I've being doing is to simply wrap things like Another approach would be to use the <Link as="q-item" :href="url">
Item text
</Link> I have a starter kit project for Laravel that uses Quasar and SSR is the missing piece on that. Hope we can figure it out. |
BTW... Quasar is working fine with Vite and Inertia without SSR. But if you try to build with SSR, there's a bunch of problems that seams to be related with Node ESM system, like extra packages not being found and stuff like that. I assumed that this is expected, since the docs mention that SSR via the Vite plugin is not supported yet. |
Hey @MtDalPizzol I created a repository showing the problem, if you have time and want to help you can do some PR solving the problem. |
@mpont91 Still no luck. I'm waiting till the notice on the Vite Plugin docs for SSR support goes away. =/ |
Is your feature request related to a problem? Please describe.
I haven't used vite.js myself, but it does seem like a killer feature. Right now, it takes me about 25 seconds to launch my dev server with quasar dev, compared to probably a couple hundred milliseconds for vite.js.
It seems like this new tool will probably become more popular than vue-cli (I do not see why it would not).
Describe the solution you'd like
Either:
The text was updated successfully, but these errors were encountered: