constJS_RUNTIME_CODE=`import {injectHook as __injectHook__,createApp as __createApp__} from 'vue';const __RUNTIME__ = {injectHook:__injectHook__,createApp:__createApp__};`;
functioncreateApp(code){
return`const __app__=createApp().app;__app__._component.render=()=>{};__app__.use(__vuePlugin,__RUNTIME__).mount("#app");${code.replace('createSSRApp','createVueApp as createSSRApp')}`;
return`const __app__=createApp().app;__app__._component.render=()=>{};__app__.use(uni.__vuePlugin).mount("#app");${code.replace('createSSRApp','createVueApp as createSSRApp')}`;
@@ -20,17 +20,15 @@ export function uniMainJsPlugin() {
})
}
constJS_RUNTIME_CODE=`import {injectHook as __injectHook__,createApp as __createApp__} from 'vue';const __RUNTIME__ = {injectHook:__injectHook__,createApp:__createApp__};`