Vite as Node runtime.
undefinedEXPERIMENTALundefined
npx vite-node index.ts
Options:
npx vite-node -h
vite.config.ts__dirname and __filename in ESMfs, path, etc.nodemon)It runs Vite’s id resolving, module transforming, and most importantly, the powerful plugins system!
It fires up a Vite dev server, transforms the requests, and runs them in Node.
Based on @pi0’s brilliant idea of having a Vite server as the on-demand transforming service for Nuxt’s Vite SSR.
Thanks @brillout for kindly sharing this package name.
MIT License © 2021 Anthony Fu
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.