diff --git a/electron-src/esbuild.main.config.ts b/electron-src/esbuild.main.config.ts index 771c539..8899bce 100644 --- a/electron-src/esbuild.main.config.ts +++ b/electron-src/esbuild.main.config.ts @@ -11,8 +11,12 @@ const config: BuildOptions = { ], bundle: true, external: ["next", "better-sqlite3", "electron-mac-contacts", "node-electron-permissions"], + minify: true, + minifyWhitespace: true, + minifyIdentifiers: true, + minifySyntax: true, treeShaking: true, - target: "node19.4.0", // electron version target + target: "node19.9.0", }; export default config; diff --git a/package.json b/package.json index 9367e48..a94c692 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "author": "JonLuca DeCaro ", "main": "build/electron-src/index.js", "name": "MiMessage", - "version": "1.0.11", + "version": "1.0.12", "productName": "Mimessage", "description": "Apple Messages UI alternative, with export, search, and more.", "scripts": { @@ -16,7 +16,7 @@ "notarize": "DEBUG=electron* node --experimental-specifier-resolution=node --no-warnings --loader ts-node/esm/transpile-only electron-src/hooks/notarize.ts", "start:app": "electron-esbuild dev", "clean": "rimraf dist build src/out .next src/.next", - "dev": "yarn start:app", + "dev": "DEBUG=* yarn start:app", "dev:debug": "DEBUG_LOGGING=true yarn start:app", "gen-types": "node --experimental-specifier-resolution=node --no-warnings --loader ts-node/esm/transpile-only scripts/gen-types.ts", "typecheck": "tsc -p src --noEmit && tsc --noEmit"