10 lines
284 B
TypeScript
Raw Normal View History

2020-08-31 09:50:57 +08:00
import { createApp } from 'vue'
import App from './App.vue'
import './index.css'
// vite 会编译 import 的形式;所以 electron 及 node.js 内置模块用 require 形式
const { ipcRenderer } = require('electron')
console.log(ipcRenderer)
createApp(App as any).mount('#app')