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
I have a project that is uses vite dev server in dev mode. There are some shared files between vite ssr and server. They are being "loaded" twice because vite in ssr transpiles the module and executes it again. Is is possible to tell vite to load the module directly through node import? I've tried https://vite.dev/guide/ssr.html#ssr-externals and a dozen of other techniques proposed by various LLMs and nothing worked. I would really like to listen to your ideas!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I have a project that is uses vite dev server in dev mode. There are some shared files between vite ssr and server. They are being "loaded" twice because vite in ssr transpiles the module and executes it again. Is is possible to tell vite to load the module directly through node import? I've tried https://vite.dev/guide/ssr.html#ssr-externals and a dozen of other techniques proposed by various LLMs and nothing worked. I would really like to listen to your ideas!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions