From db2e994059457acf8d6a55df1b65d8170f9d3f82 Mon Sep 17 00:00:00 2001 From: Jaied Al Sabid <87969327+jaieds@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:54:06 +0600 Subject: [PATCH] Updated the Vite config and ts config --- tsconfig.app.json | 4 ++-- vite.config.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tsconfig.app.json b/tsconfig.app.json index d49b5b0a..a075de67 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -1,9 +1,9 @@ { "compilerOptions": { "baseUrl": ".", - "target": "ES2020", + "target": "ESNext", "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": ["ESNext", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true, diff --git a/vite.config.ts b/vite.config.ts index fcd53d19..121b0e5d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,3 +1,4 @@ +import preserveDirectives from 'rollup-preserve-directives'; import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import { resolve } from 'path'; @@ -34,5 +35,6 @@ export default defineConfig({ plugins: [ react(), dts({ rollupTypes: true, tsconfigPath: './tsconfig.app.json' }), + preserveDirectives(), ], });