A Vite plugin to polyfill Node's Core Modules for browser environments. - davidmyersdev/vite-plugin-node-polyfills
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/elect...