You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Chore: Desktop: Enable source maps for error reporting by default (#13577)
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"electronRebuild": "gulp electronRebuild",
|
||||
"tsc": "tsc --project tsconfig.json",
|
||||
"watch": "tsc --watch --preserveWatchOutput --project tsconfig.json",
|
||||
"start": "gulp before-start && JOPLIN_SOURCE_MAP_ENABLED=1 electron . --env dev --log-level debug --open-dev-tools --no-welcome",
|
||||
"start": "gulp before-start && electron . --env dev --log-level debug --open-dev-tools --no-welcome",
|
||||
"test": "jest",
|
||||
"test-ui": "gulp before-start && playwright test",
|
||||
"test-ci": "yarn test",
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
|
||||
// source-map-support can add 1-3 seconds to the application startup
|
||||
// time -- disable it unless requested:
|
||||
if (process.env.JOPLIN_SOURCE_MAP_ENABLED) {
|
||||
// time. In the future, it may make sense to either:
|
||||
// - Use Sentry for resolving source maps: https://docs.sentry.io/platforms/javascript/guides/electron/sourcemaps/
|
||||
// - Use NodeJS source map support (if https://github.com/electron/electron/issues/38875 is resolved)
|
||||
if (!process.env.JOPLIN_SOURCE_MAP_DISABLED) {
|
||||
require('source-map-support').install();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user