Skip to content

Commit 08bfb9f

Browse files
committed
2 parents ffc7b8b + 31dd4c2 commit 08bfb9f

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { readFileSync, writeFileSync } from "fs";
2+
3+
const VITE_CONFIG_PATH = "app/vite.config.ts";
4+
5+
const conf = readFileSync(VITE_CONFIG_PATH);
6+
const updated = conf.toString().replace("sourcemap: false", "sourcemap: true");
7+
8+
writeFileSync(VITE_CONFIG_PATH, updated);
9+
10+
console.log(updated);

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ jobs:
219219
if: ${{ inputs.include_devtools }}
220220
run: |
221221
node ./.github/scripts/set-tauri-features.mjs devtools
222+
node ./.github/scripts/enable-sourcemap.mjs
222223
- name: Android - Set app version
223224
if: matrix.android
224225
run: |

app/vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ export default defineConfig({
5959
"@": path.resolve(__dirname, "./src"),
6060
},
6161
},
62+
63+
build: {
64+
sourcemap: false,
65+
},
6266
});

0 commit comments

Comments
 (0)