You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this of course does not work because it doesn't resolve stuff (like the "$lib" alias, virtual modules etc.). For this, I use vite-node. But currently this only works with files - I have to create a file, run it with vite-node, repeat.
Suggested solution
Allow running vite-node without arguments to enter interactive mode (REPL).
Team decided that we don't add a new feature on top of vite-node anymore as we plan to migrate to use a primitive from Vite core directly. Repl-like feature can be implemented on top of Vite ssr/module runner level, so I'll experiment with that instead.
Thanks for the idea, but closing this issue for now.
Clear and concise description of the problem
I like to test part of my code in the Node interactive console, i.e. REPL:
However, this of course does not work because it doesn't resolve stuff (like the "$lib" alias, virtual modules etc.). For this, I use
vite-node
. But currently this only works with files - I have to create a file, run it withvite-node
, repeat.Suggested solution
Allow running
vite-node
without arguments to enter interactive mode (REPL).Alternative
Keep using files instead.
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: