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 would like to evaluate snippets of JavaScript (to implement a REPL for a dialect of ClojureScript) in a project that runs vite.
Vite translates code like import 'joi' to import '/node_modules/.vite/deps/joi.js?v=53669cbc' but in my snippets I don't know how to make this translation.
It would be very handy if vite had some endpoint where I could just send the import to, like:
/@resolve-at-runtime/joi
so in my compiler I would just have to add a small prefix to make this work.
Is there such a thing, perhaps as a plugin? Perhaps other approaches that could work?
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.
-
I would like to evaluate snippets of JavaScript (to implement a REPL for a dialect of ClojureScript) in a project that runs vite.
Vite translates code like
import 'joi'toimport '/node_modules/.vite/deps/joi.js?v=53669cbc'but in my snippets I don't know how to make this translation.It would be very handy if vite had some endpoint where I could just send the import to, like:
so in my compiler I would just have to add a small prefix to make this work.
Is there such a thing, perhaps as a plugin? Perhaps other approaches that could work?
Beta Was this translation helpful? Give feedback.
All reactions