From 3d1cc1e422a1258c26a2f2decf3bcc7d677c5593 Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Sat, 25 May 2024 09:03:04 +0100 Subject: [PATCH] feat: generate production source maps to assist debugging --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index d62954a4c..12bb85b8b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,6 +20,9 @@ export default defineConfig({ define: { APP_VERSION: JSON.stringify(process.env.npm_package_version) }, + build: { + sourcemap: true + }, worker: { format: 'es' }