logoalt Hacker News

ivanjermakovtoday at 12:01 PM4 repliesview on HN

Can it be used for Node builds or browser-only same as Vite?


Replies

UnfitFootprinttoday at 1:30 PM

Here is my particular incantation for targeting node that is working very well: https://pastebin.com/ynz4B5X0

Essentially you pretend to be a library

tvbusytoday at 12:10 PM

It uses Vite so the same limitations as Vite. However, I have been using Vite for my NestJS servers without any problem with `vite-plugin-node`. See example at https://github.com/leosuncin/nest-vite-example/blob/master/v...

show 1 reply
TheAlexLichtertoday at 12:23 PM

I am using Vite+ for CLIs as well, yes. You don't use Vite as dev server then but lint, format, task running and caching is still there!

show 2 replies
curtisblainetoday at 12:09 PM

I'm always curious of the use case when someone proposes Node code bundling. What's the advantage? Obfuscation in SEA?

show 5 replies