From 789094a107a083686c6815df20f2b4ce7cb08020 Mon Sep 17 00:00:00 2001 From: Zeyar Paing Date: Tue, 26 Nov 2024 23:18:19 +0700 Subject: [PATCH] sourcemap --- packages/vanilla/vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vanilla/vite.config.ts b/packages/vanilla/vite.config.ts index a2e9f0f..691957e 100644 --- a/packages/vanilla/vite.config.ts +++ b/packages/vanilla/vite.config.ts @@ -6,14 +6,14 @@ import dts from 'vite-plugin-dts'; export default defineConfig(({ mode }) => { return { esbuild: { - sourcemap: 'inline', drop: mode === 'development' ? [] : ['console', 'debugger'], + sourcemap: 'inline', }, optimizeDeps: { include: ['penpal', 'uuid', 'zod'], }, build: { - emptyOutDir: false, + emptyOutDir: mode === 'production', copyPublicDir: false, lib: { name: 'OpenPay',