Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit ac4f902

Browse files
committed
electron: Display TypeScript stack traces
1 parent 3bc83e1 commit ac4f902

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

electron.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import appIconService from "./src/services/app_icon.js";
88
import windowService from "./src/services/window.js";
99
import tray from "./src/services/tray.js";
1010

11+
import sourceMapSupport from "source-map-support";
12+
sourceMapSupport.install();
13+
1114
// Prevent Trilium starting twice on first install and on uninstall for the Windows installer.
1215
if ((await import('electron-squirrel-startup')).default) {
1316
process.exit(0);

package-lock.json

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"semver": "^7.6.3",
113113
"serve-favicon": "2.5.0",
114114
"session-file-store": "1.5.0",
115+
"source-map-support": "^0.5.21",
115116
"split.js": "1.6.5",
116117
"stream-throttle": "0.1.3",
117118
"striptags": "3.2.0",
@@ -150,6 +151,7 @@
150151
"@types/semver": "^7.5.8",
151152
"@types/serve-favicon": "^2.5.7",
152153
"@types/session-file-store": "^1.2.5",
154+
"@types/source-map-support": "^0.5.10",
153155
"@types/stream-throttle": "^0.1.4",
154156
"@types/tmp": "^0.2.6",
155157
"@types/turndown": "^5.0.4",

0 commit comments

Comments
 (0)