From 1765d257e7dc641a7ecc82ff6c97f5a414704d4d Mon Sep 17 00:00:00 2001 From: Fadi Hanna Date: Sat, 14 Sep 2024 22:40:19 +0200 Subject: [PATCH] Add sourcemap option --- tsconfig.json | 1 - vite.config.mts | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 14f86aa..4f9b017 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,6 @@ "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, - "sourceMap": false, "allowUnreachableCode": false, "allowUnusedLabels": false, "checkJs": true, diff --git a/vite.config.mts b/vite.config.mts index eb2cff0..5f15811 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -3,6 +3,9 @@ import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], + build: { + sourcemap: false, + }, base: '/', server: { port: 3000,