axe-me / vite-plugin-node

Vite plugin to run your node dev server with HMR!
1k stars 48 forks source link

Do you plan to support Vite 3.0? #59

Closed shuuuuun closed 1 year ago

shuuuuun commented 2 years ago

Vite 3.0 was released on 07/13/2022. https://github.com/vitejs/vite/releases/tag/v3.0.0 https://vitejs.dev/blog/announcing-vite3.html

vite-plugin-node currently cannot be used with Vite 3.0 because "vite":"^2.9.8" is specified in peerDependencies. https://github.com/axe-me/vite-plugin-node/blob/652bec7484b8a9122df3cd11cf10dd6152960607/packages/vite-plugin-node/package.json#L40

It would be great if you could support Vite 3.0. Thank you.

sebastiangug commented 2 years ago

I pretty much installed vite 3 and ignored that warning, didn't seem to be a problem.

Sadly I don't think this package is maintained any longer, haven't seen anyone replying/fixing anything or posting any new versions, which is fair enough.

Might give it a go at forking it and fixing some of the issues as I'd like to be able to use this with nestjs & graphql.

vova-white commented 2 years ago

Might give it a go at forking it and fixing some of the issues as I'd like to be able to use this with nestjs & graphql. @sebastiangug I made a small starter for nestjs(fastify) with vite and graphql. If you haven't solved your problem yet, maybe this will help you.

jaybe78 commented 2 years ago

@sebastiangug @vova-white @shuuuuun what about https://www.npmjs.com/package/vite-node ? Has anyone used it ?

wobsoriano commented 1 year ago

that redirects to vitest @jaybe78

This is what I've been using https://github.com/cyco130/vavite

qeleb commented 1 year ago

For anyone who finds this and VItePluginNode is still outdated... I've created a small, lightweight, and up-to-date version here.

It is specifically designed for Fastify, but can be easily switched to any of the other supported frameworks by replacing lines 35-36 with the contents of one of these functions

axe-me commented 1 year ago

sorry, tons of things are going on in work and life. pushed out a new 2.0.0 for support vite 3, please try it out.