Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions ISA.md

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions app/electron.vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from 'electron-vite';
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
import react from '@vitejs/plugin-react';
import { fileURLToPath } from 'node:url';

Expand All @@ -7,8 +7,13 @@ import { fileURLToPath } from 'node:url';
const repoRoot = fileURLToPath(new URL('..', import.meta.url));

export default defineConfig({
main: {},
preload: {},
// Externalize node_modules deps for main/preload (the electron-vite default).
// `ws` is a devDependency (not auto-externalized), so include it explicitly —
// otherwise it's bundled and its optional `bufferutil` import is baked in →
// "Could not resolve bufferutil" at boot. Externalized, ws is required at
// runtime and its WS_NO_BUFFER_UTIL fallback (wsEnv.ts) applies cleanly.
main: { plugins: [externalizeDepsPlugin({ include: ['ws'] })] },
preload: { plugins: [externalizeDepsPlugin()] },
renderer: {
plugins: [react()],
server: { fs: { allow: [repoRoot] } },
Expand Down
3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"scripts": {
"sync:schema": "node ../scripts/sync-canvas-schema.mjs",
"gen:validator": "npm run sync:schema && tsx tools/gen-validator/genValidator.ts",
"predev": "npm run gen:validator",
"gc": "node tools/gc-app-instances.mjs",
"predev": "npm run gc && npm run gen:validator",
"dev": "electron-vite dev",
"prebuild": "npm run gen:validator",
"build": "electron-vite build",
Expand Down
Loading
Loading