chore: 用esbuild代替vite来打包main

This commit is contained in:
qier222 2022-03-29 16:52:53 +08:00
parent b4590c3c34
commit c4219afd3d
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
152 changed files with 669 additions and 747 deletions

13
src/renderer/global.d.ts vendored Normal file
View file

@ -0,0 +1,13 @@
export {}
declare global {
interface Window {
// Expose some Api through preload script
ipcRenderer?: import('electron').IpcRenderer
isElectron?: boolean
}
}
declare module 'valtio' {
function useSnapshot<T extends object>(p: T): T
}