Total Complexity | 1 |
Complexity/F | 0 |
Lines of Code | 25 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import App from '@/vue/App.vue'; |
||
2 | import {createApp} from 'vue'; |
||
3 | |||
4 | // App main |
||
5 | const main = async () => { |
||
6 | // Create our vue instance |
||
7 | const app = createApp(App); |
||
8 | // Mount the app |
||
9 | const root = app.mount('#app-container'); |
||
10 | |||
11 | return root; |
||
12 | }; |
||
13 | |||
14 | // Execute async function |
||
15 | main().then(() => { |
||
16 | console.log(); |
||
17 | }); |
||
18 | |||
19 | // Accept HMR as per: https://vitejs.dev/guide/api-hmr.html |
||
20 | if (import.meta.hot) { |
||
21 | import.meta.hot.accept(() => { |
||
22 | console.log("HMR") |
||
23 | }); |
||
24 | } |
||
25 |