From 21e70ca3a4cc45d47b9a8fe8b9285f3fdf9651f0 Mon Sep 17 00:00:00 2001 From: Edwin Joassart Date: Mon, 9 Jan 2023 13:40:44 +0100 Subject: [PATCH] generate sourcemap as part of the build --- lib/gui/app/i18n/en.ts | 3 ++- tsconfig.webpack.json | 6 ++---- webpack.config.ts | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/gui/app/i18n/en.ts b/lib/gui/app/i18n/en.ts index eb7abb61..4d6fd34f 100644 --- a/lib/gui/app/i18n/en.ts +++ b/lib/gui/app/i18n/en.ts @@ -138,7 +138,8 @@ const translation = { autoUpdate: 'Auto-updates enabled', settings: 'Settings', systemInformation: 'System Information', - trimExtPartitions: 'Trim unallocated space on raw images (in ext-type partitions)', + trimExtPartitions: + 'Trim unallocated space on raw images (in ext-type partitions)', }, menu: { edit: 'Edit', diff --git a/tsconfig.webpack.json b/tsconfig.webpack.json index 7d4e4902..28adedc3 100644 --- a/tsconfig.webpack.json +++ b/tsconfig.webpack.json @@ -16,13 +16,11 @@ "declarationMap": true, "pretty": true, "sourceMap": true, + "inlineSourceMap": true, "baseUrl": "./src", "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "allowJs": true }, - "include": [ - "lib/**/*.ts", - "node_modules/electron/**/*.d.ts" - ] + "include": ["lib/**/*.ts", "node_modules/electron/**/*.d.ts"] } diff --git a/webpack.config.ts b/webpack.config.ts index 259ed300..de838188 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -455,6 +455,7 @@ const guiConfig = { const mainConfig = { ...commonConfig, target: 'electron-main', + devtool: 'source-map', node: { __dirname: false, __filename: true,