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 use the JavaScript API to call Vite during the local development phase and pre-build my components as ESMs so that my online documentation website can access them as ESMs. Although I have implemented a feature in the documentation system similar to @vue/repl, I don't know how to find the Vite access addresses for dependencies of the developing components during Vite startup. If I can get the precompiled addresses of these dependencies, including Vue, dayjs, or other UI component libraries, I can preload these dependencies in my documentation system, just like the importMap in @vue/repl. This way, I can preview the developing components in the documentation system while modifying them locally and enjoy Vite's hot update service.
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
-
I would like to use the JavaScript API to call Vite during the local development phase and pre-build my components as ESMs so that my online documentation website can access them as ESMs. Although I have implemented a feature in the documentation system similar to @vue/repl, I don't know how to find the Vite access addresses for dependencies of the developing components during Vite startup. If I can get the precompiled addresses of these dependencies, including Vue, dayjs, or other UI component libraries, I can preload these dependencies in my documentation system, just like the importMap in @vue/repl. This way, I can preview the developing components in the documentation system while modifying them locally and enjoy Vite's hot update service.
Beta Was this translation helpful? Give feedback.
All reactions