import { createApp } from 'vue'; import App from './App.vue'; createApp(App).mount('#app'); if (module.hot) { module.hot.accept(); // already had this init code module.hot.addStatusHandler(status => { if (status === 'prepare') console.clear(); }); }