#How can I start Vite with node flag

1 messages · Page 1 of 1 (latest)

polar torrent
#

Don't know if is more a package manager, question, but is there a simple way to run vite build, or vite dev while node has --experimental-network-imports on?

From what I've seen yarn does not have a way to run a script and specify a flag...

Maybe is possible by doing directly the node command followed by the Vite script in bin, don't think there's another way...

#

Something like
node --experimental-network-imports ./node_modules/vite/bin/vite dev
seems to work

river stone
#

You can probably set that param in NODE_OPTIONS instead… on my phone but a Google will probably help you understand what I am saying