UNPKG

vva-cli

Version:

A CLI of Vue 3 and Typescript and Element-plus in Vite

16 lines (13 loc) 411 B
import { createSSRApp } from "vue"; import { sync } from "vuex-router-sync"; import App from "@/App.vue"; import createStore from "../store"; import createRouter from "../route"; export function createApp() { const router = createRouter(); const store = createStore(); sync(store, router); const app = createSSRApp(App); app.use(router).use(store); return { app, router, store }; }