Passed
Push — v4 ( fda6ca...8e80bf )
by Andrew
13:45 queued 07:03
created

buildchain/src/js/welcome.ts   A

Complexity

Total Complexity 1
Complexity/F 0

Size

Lines of Code 25
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 17
c 0
b 0
f 0
dl 0
loc 25
rs 10
wmc 1
mnd 1
bc 1
fnc 0
bpm 0
cpm 0
noi 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