From 08976624cda119bf7c01b14cf88a082f9de866fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 22 May 2024 17:30:40 +0800 Subject: [PATCH] feat: debug --- tsconfig.json | 1 + vite.config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index a265da33..0901331e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,6 +20,7 @@ "noUnusedLocals": false, "noUnusedParameters": false, "noFallthroughCasesInSwitch": true, + "sourceMap": true, "paths": { "@*": [ "./src*" diff --git a/vite.config.ts b/vite.config.ts index e651ac77..160faf86 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -76,6 +76,7 @@ const baseConfig = (mode: string = 'development') => defineConfig({ }, }, build: { + sourcemap: mode === 'development', target: 'esnext', // minify: mode === 'production' ? 'esbuild' : false, // 压缩代码出现了未知问题导致无法运行,暂时不启用