vite-plugin-node icon indicating copy to clipboard operation
vite-plugin-node copied to clipboard

Do you plan to support Vite 3.0?

Open shuuuuun opened this issue 3 years ago • 3 comments
trafficstars

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.

shuuuuun avatar Aug 09 '22 15:08 shuuuuun

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.

sebastiangug avatar Aug 10 '22 10:08 sebastiangug

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.

vova-white avatar Aug 24 '22 13:08 vova-white

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

jaybe78 avatar Sep 15 '22 17:09 jaybe78

that redirects to vitest @jaybe78

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

wobsoriano avatar Nov 13 '22 05:11 wobsoriano

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

qeleb avatar Jan 05 '23 16:01 qeleb

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.

axe-me avatar Jan 12 '23 02:01 axe-me