diff --git a/features/email/frontend-users/vite.config.ts b/features/email/frontend-users/vite.config.ts index 12f07fa7d..2452bf23f 100755 --- a/features/email/frontend-users/vite.config.ts +++ b/features/email/frontend-users/vite.config.ts @@ -29,4 +29,8 @@ export default defineConfig({ '@': path.resolve(__dirname, './src'), }, }, + build: { + emptyOutDir: false, // Don't wipe library exports created by tsup + sourcemap: true, + }, }) diff --git a/features/marketplace/frontend-public/vite.config.ts b/features/marketplace/frontend-public/vite.config.ts index 79deab983..ba2495955 100755 --- a/features/marketplace/frontend-public/vite.config.ts +++ b/features/marketplace/frontend-public/vite.config.ts @@ -88,4 +88,8 @@ export default defineConfig({ }, }, }, + build: { + emptyOutDir: false, // Don't wipe library exports created by tsup + sourcemap: true, + }, }); diff --git a/features/profile/frontend-app/vite.config.ts b/features/profile/frontend-app/vite.config.ts index 8ac1757ea..64891177d 100755 --- a/features/profile/frontend-app/vite.config.ts +++ b/features/profile/frontend-app/vite.config.ts @@ -29,6 +29,7 @@ export default defineConfig({ }, build: { outDir: 'dist', + emptyOutDir: false, // Don't wipe library exports created by tsup sourcemap: true, }, }); diff --git a/features/seo/frontend-admin/vite.config.ts b/features/seo/frontend-admin/vite.config.ts index cc1625af1..82f1f1121 100755 --- a/features/seo/frontend-admin/vite.config.ts +++ b/features/seo/frontend-admin/vite.config.ts @@ -25,6 +25,7 @@ export default defineConfig({ }, build: { outDir: 'dist', + emptyOutDir: false, // Don't wipe library exports created by tsup sourcemap: true, }, });