electron-vite-vue 🥳 Really simpleElectron+Vue+Viteboilerplate. Features 📦 Out of the box 🎯 Based on the officialtemplate-vue-ts, less invasive 🌱 Extensible, really simple directory structure 💪 Support using Node.js API in Electron-Renderer 🔩 Support C/C++ native addons 🖥 It'...
better-sqlite3 用于操作sqlite数据库,该库使用时可能出现多种错误 开发模式下如果提示缺少包,可在主进程配置文件中配置rollup的参数,如 ...build:{rollupOptions:{external:["better-sqlite3"],},}... 如果提示如下信息,可通过electron-rebuild -f -w better-sqlite3指令进行重新编译 ...better_sqlite3.node ...
Electron⚡️Vite samples, includes C/C++ addons | 样板代码集合,包含 C/C++ 扩展 - electron-vite-samples/sqlite3-renderer-process/vite.config.ts at main · caoxiemeihao/electron-vite-samples
//vite.config.tsimport{defineConfig}from"vite";import{svelte}from"@sveltejs/vite-plugin-svelte";importoptimizerfrom"vite-plugin-optimizer";letgetReplacer=()=>{letexternalModels=["electron","os","fs","path","events","child_process","crypto","http","buffer","url","better-sqlite3","knex"...
// plugins\devPlugin.tsexportletgetReplacer= () => {letexternalModels = ["os","fs","path","events","child_process","crypto","http","buffer","url","better-sqlite3","knex"];letresult = {};for(letitemofexternalModels) { result[item] =() =>({find:newRegExp(`^${item}$`),co...
better-sqlite3-main-process better-sqlite3-renderer-process 👉 sqlite3 sqlite3-main-process sqlite3-renderer-process 👉 serialport serialport-main-process serialport-renderer-process 👍 3 🎉 1 ️ 1 🚀 1 caoxiemeihao added the documentation label Sep 5, 2023 caoxiemeihao pinned...
8de547b feat: better rebuild.vitecache 0.13.3 (2023-03-21) de584cc fix: filtervirtual-module: 0.13.2 (2023-03-21) 7cc1abd refactor: better module type detect 0.13.1 (2023-03-21) 893e361 refactor!: improve Pre-Bundling #35
// plugins\devPlugin.tsexportletgetReplacer=()=>{letexternalModels=["os","fs","path","events","child_process","crypto","http","buffer","url","better-sqlite3","knex"];letresult={};for(letitemofexternalModels){result[item]=()=>({find:newRegExp(`^${item}$`),code:`const${item...
let externalModels = ["os", "fs", "path", "events", "child_process", "crypto", "http", "buffer", "url", "better-sqlite3", "knex"]; let result = {}; for (let item of externalModels) { result[item] = () => ({
let externalModels = ["os", "fs", "path", "events", "child_process", "crypto", "http", "buffer", "url", "better-sqlite3", "knex"]; let result = {}; for (let item of externalModels) { result[item] = () => ({