From e6a7e0d08ba2596e9415675c0859be6a002b7a68 Mon Sep 17 00:00:00 2001 From: Taras Glek Date: Mon, 13 May 2024 11:51:36 +0300 Subject: [PATCH 1/4] usable source maps --- .vscode/settings.json | 15 ++++++++++++--- vite.config.ts | 8 +++++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 96d0fea24..fb44c1652 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,11 +2,20 @@ "editor.insertSpaces": true, "editor.tabSize": 2, "editor.detectIndentation": false, - "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll": true + "source.fixAll": "explicit" }, "files.eol": "\n", - "files.insertFinalNewline": true + "files.insertFinalNewline": true, + "deno.enable": true, + "deno.lint": true, + "deno.unstable": false, // Set to true if you want to enable unstable Deno features + "[typescript]": { + "editor.defaultFormatter": "denoland.vscode-deno" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "denoland.vscode-deno" + } } diff --git a/vite.config.ts b/vite.config.ts index c5b21bddf..d2a5897f3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -50,7 +50,11 @@ export default defineConfig({ name: "ChatCraft.org", short_name: "ChatCraft", icons: [ - { src: "/android-chrome-192x192.png", sizes: "192x192", type: "image/png" }, + { + src: "/android-chrome-192x192.png", + sizes: "192x192", + type: "image/png", + }, { src: "/android-chrome-512x512.png", sizes: "512x512", @@ -85,5 +89,7 @@ export default defineConfig({ chunkSizeWarningLimit: 2200, outDir: "build", target: "esnext", + sourcemap: true, // Enable source maps for production builds + minify: false, // Disable minification for better stack traces }, }); From e293aaca8a213a9b37f4d9e25eb1cb012e8b16c1 Mon Sep 17 00:00:00 2001 From: Taras Glek Date: Mon, 13 May 2024 12:32:10 +0300 Subject: [PATCH 2/4] no source maps cos Error: Pages only supports files up to 25 MiB in size --- .vscode/settings.json | 2 +- vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index fb44c1652..e61ec667a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,7 +9,7 @@ }, "files.eol": "\n", "files.insertFinalNewline": true, - "deno.enable": true, + "deno.enable": false, "deno.lint": true, "deno.unstable": false, // Set to true if you want to enable unstable Deno features "[typescript]": { diff --git a/vite.config.ts b/vite.config.ts index d2a5897f3..4d854b61d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -89,7 +89,7 @@ export default defineConfig({ chunkSizeWarningLimit: 2200, outDir: "build", target: "esnext", - sourcemap: true, // Enable source maps for production builds minify: false, // Disable minification for better stack traces + sourcemap: false, // ✘ [ERROR] Error: Pages only supports files up to 25 MiB in size }, }); From af7d0a1361e3cff13fede52f545f09f4659b8fae Mon Sep 17 00:00:00 2001 From: Taras Glek Date: Mon, 13 May 2024 13:07:54 +0300 Subject: [PATCH 3/4] try inline --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 4d854b61d..c5fc68056 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -90,6 +90,6 @@ export default defineConfig({ outDir: "build", target: "esnext", minify: false, // Disable minification for better stack traces - sourcemap: false, // ✘ [ERROR] Error: Pages only supports files up to 25 MiB in size + sourcemap: "inline", // ✘ [ERROR] Error: Pages only supports files up to 25 MiB in size }, }); From 56e9955178ed4bff2f96bfad28b360cd57be1053 Mon Sep 17 00:00:00 2001 From: Taras Glek Date: Mon, 13 May 2024 13:16:58 +0300 Subject: [PATCH 4/4] try hidden --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index c5fc68056..5c3c8593e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -90,6 +90,6 @@ export default defineConfig({ outDir: "build", target: "esnext", minify: false, // Disable minification for better stack traces - sourcemap: "inline", // ✘ [ERROR] Error: Pages only supports files up to 25 MiB in size + sourcemap: "hidden", // ✘ [ERROR] Error: Pages only supports files up to 25 MiB in size }, });