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:
@@ -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