chore(build): enable source maps

This commit is contained in:
Elian Doran 2025-06-07 20:12:13 +03:00
parent 70cdc100d9
commit 7281233012
No known key found for this signature in database
4 changed files with 5 additions and 1 deletions

View File

@ -55,6 +55,7 @@ export default defineConfig(() => ({
outDir: './dist', outDir: './dist',
emptyOutDir: true, emptyOutDir: true,
reportCompressedSize: true, reportCompressedSize: true,
sourcemap: process.env.NODE_ENV === "production",
rollupOptions: { rollupOptions: {
input: { input: {
desktop: join(__dirname, "src", "desktop.ts"), desktop: join(__dirname, "src", "desktop.ts"),

View File

@ -1,2 +1,3 @@
TRILIUM_PORT=37741 TRILIUM_PORT=37741
TRILIUM_DATA_DIR=../data TRILIUM_DATA_DIR=../data
NODE_OPTIONS=--enable-source-maps

View File

@ -66,6 +66,7 @@
"minify": true, "minify": true,
"thirdParty": true, "thirdParty": true,
"declaration": false, "declaration": false,
"sourcemap": true,
"esbuildOptions": { "esbuildOptions": {
"splitting": false, "splitting": false,
"loader": { "loader": {

View File

@ -264,6 +264,7 @@
"minify": true, "minify": true,
"thirdParty": true, "thirdParty": true,
"declaration": false, "declaration": false,
"sourcemap": true,
"esbuildOptions": { "esbuildOptions": {
"splitting": false, "splitting": false,
"loader": { "loader": {