{"repo":"axe-me/vite-plugin-node","free":true,"listed":false,"github":"https://github.com/axe-me/vite-plugin-node","clone":"git clone https://github.com/axe-me/vite-plugin-node.git","description":"Vite plugin to run your node dev server with HMR!","language":"TypeScript","stars":1127,"topics":["vite","vite-plugin","node-dev-server","node-hmr","hmr","typescript"],"license":null,"category":"dev-tools","readme_excerpt":"Vite Plugin Node A vite plugin to allow you to use vite as node dev server. Features - All the perks from Vite plus: - Node server HMR! (hot module replacement) - Support Express, Fastify, Koa and Nest out of the box - Support Custom Request Adapter - You can choose to use Vite default compiler ( vite , powered by Oxc) or swc to compile your TypeScript files Get started --- 1. Install vite and this plugin with your favorite package manager, here use npm as example: Vite version and package version match table: Vite Plugin -------------- ---------------- 8.x.x 8.x.x 7.x.x 7.x.x 6.x.x 5.x.x 5.x.x 4.x.x 4.x.x 3.x.x 3.x.x Note: By default, starting from vite v3, the ssr buildle will be in esm format. if you want to build cjs, add ssr: { format: 'cjs' } to your vite config. Examples See the examples folder. Why? --- While frontend development tooling is evolving rapidly in recent years, backend DX is still like in stone age. No hot module replacement; Typescript recompiling slow as funk; Lack of plugin system etc. Thanks to Vite.js created by Evan You (A.K.A creator of vue.js; my biggest idol developer), makes all those dreams for backend development come true! How? --- Vite by design has a middleware mode, which allows us to use it programmatically inside other modules. It's originally made for SSR, so that for each request, vite can load the renderer and render the latest changes you made to your app ( ). This plugin leverages this feature to load and execute your server app ent","default_branch":null,"files":null,"tree":[],"storefront":"/r/axe-me","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/axe-me/vite-plugin-node/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}