import{defineConfig}from'vite'importvuefrom'@vitejs/plugin-vue'importelectronfrom"vite-plugin-electron";importelectronRendererfrom"vite-plugin-electron-renderer";importpolyfillExportsfrom"vite-plugin-electron-renderer";// https://vitejs.dev/config/exportdefaultdefineConfig({plugins:[vue(),electron({entry...
feat: polyfill import.meta.env Browse files main (caoxiemeihao/vite-electron-plugin#34) caoxiemeihao committed Nov 7, 2022 1 parent 1fb98b4 commit 4dcccee Showing 1 changed file with 8 additions and 0 deletions. Whitespace Ignore whitespace Split Unified ...
export default function buildConfig(nodeIntegration?: boolean): Plugin[] { return [ { name: 'vite-plugin-electron-renderer:builtins', config(config) { const aliases: Alias[] = [ // Always polyfill electron. { find: 'electron', replacement: 'vite-plugin-electron-renderer/builtins/e...