UNPKG

@tomjs/vite-plugin-electron

Version:

A simple vite plugin for electron, supports esm/cjs, support esm in electron v28+

18 lines (16 loc) 314 B
/** * fix code hint */ type UnionType<T> = T | (string & {}); declare namespace NodeJS { interface ProcessEnv { /** * Node.js environment */ NODE_ENV: UnionType<'development' | 'production' | 'test'>; /** * The url of the dev server. */ VITE_DEV_SERVER_URL?: string; } }